Issue Bug Closed

#14922TYPO3_CONF_VARS['FE']['compressionLevel'] = true leads to no compression with wrong Content-Length

Arne Bippes 08/11/05, 23:50 updated 03/13/07, 15:17

Description

In constructor gzip_encode line 168 the compression level is compared (identical: $level = true). If $level is set using the Install Tool $level is a string 'true' therefore the comparison fails and gzcompress is called with string 'true'
Needed Changes:
- do a string comparison: if (strcmp($level,'true') 0 )
- check $level for Integer in the range from 0 to 9 otherwise set default

appended diff -u contains also some extra headers about compression size – not needed but interesting …

My System:
Linux p15167410 2.6.7-040722 #1 SMP Thu Jul 22 21:41:08 CEST 2004 i686 i686 i386 GNU/Linux
PHP 4.3.4 (cli) (built: Apr 22 2005 15:31:00)
Apache2
(issue imported from #M1370)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.