http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692005-12-30T09:56:19ZTYPO3 ForgeTYPO3 Core - Bug #15337: Wrong Content-Length header implement in TSFEhttp://forge.typo3.org/issues/15337?journal_id=397642005-12-30T09:56:19Zold_hkdennis2k hkdennis2k@gmail.com
<ul></ul><p>sorry, wrong snippets given<br />----</p>
<pre><code>function processOutput() {<br /> $enableContentLengthHeader = $this->config['config']['enableContentLengthHeader'];<br /> $this->config['config']['enableContentLengthHeader'] = false;<br /> if (function_exists('ob_get_status')) {<br /> if ((bool) ob_get_status()) {<br /> @ ob_clean(); // removing BOM and space from includes and php file head<br /> } else {<br /> $enableContentLengthHeader = false;<br /> }<br /> } else {<br /> $enableContentLengthHeader = false;<br /> }<br /> parent :: processOutput();<br /> if ($enableContentLengthHeader && //<br /> !$this->TYPO3_CONF_VARS['FE']['debug'] && // <br /> !$this->config['config']['debug'] && //<br /> !$this->isEXTincScript() && //<br /> !$this->beUserLogin) {<br /> header('Content-Length: '.strlen($this->content), true);<br /> }<br /> }</code></pre> TYPO3 Core - Bug #15337: Wrong Content-Length header implement in TSFEhttp://forge.typo3.org/issues/15337?journal_id=397652005-12-30T11:00:25ZSebastian Kurfuerstsebastian@typo3.org
<ul></ul><p>Hi,<br />can you please provide a patch in unified diff format? (diff -u oldfile.php newfile.php > patchfile.patch)</p>
<p>Thanks,<br />Sebastian</p> TYPO3 Core - Bug #15337: Wrong Content-Length header implement in TSFEhttp://forge.typo3.org/issues/15337?journal_id=397662006-01-03T05:20:39Zold_hkdennis2k hkdennis2k@gmail.com
<ul></ul><p>I have customized the file and I don't think it is is a good patch.<br />So, I will not submit the patch file.</p>
<p>Addition Note:</p>
<p>IF any other text has been send (e.g. usually by t3lib_div::debug)<br />config.enableContentLengthHeader must be false.</p>
<p>and ob_clean() should not run if t3lib_div::debug has printed.</p> TYPO3 Core - Bug #15337: Wrong Content-Length header implement in TSFEhttp://forge.typo3.org/issues/15337?journal_id=980932011-12-26T13:30:33ZSteffen Gebertsteffen.gebert@typo3.org
<ul><li><strong>Category</strong> deleted (<del><i>Communication</i></del>)</li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> deleted (<del><i>0</i></del>)</li><li><strong>TYPO3 Version</strong> changed from <i>3.8.1</i> to <i>4.7</i></li><li><strong>PHP Version</strong> deleted (<del><i>5</i></del>)</li></ul>