Project

General

Profile

Bug #21487 » 12498_v3.diff

Administrator Admin, 2009-11-27 10:49

View differences:

t3lib/class.t3lib_div.php (working copy)
* @return void
*/
public static function flushOutputBuffers() {
$obContent = '';
while (ob_get_level()) {
ob_end_flush();
$obContent .= ob_get_clean();
}
// if previously a "Content-Encoding: whatever" has been set, we have to unset it
if (!headers_sent()) {
$headersList = headers_list();
foreach ($headersList as $header) {
// split it up at the :
list($key, $value) = t3lib_div::trimExplode(':', $header, TRUE);
// check if we have a Content-Encoding other than 'None'
if (strtolower($key) === 'content-encoding' && strtolower($value) !== 'none') {
header('Content-Encoding: None');
break;
}
}
}
echo $obContent;
}
}
(3-3/3)