Bug #14922
closedTYPO3_CONF_VARS['FE']['compressionLevel'] = true leads to no compression with wrong Content-Length
0%
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)
Files
Updated by Sebastian Kurfuerst about 18 years ago
I checked this bug and in current TYPO3 svn, the problem is not there anymore, see the snippet:
$this->encoding = $encoding;
if (strtolower($level) 'true' || $level = true) {
$level = $this->get_complevel();
}
$this->level = $level;
Greets, Sebastian