Bug #21487 » 12498_v3.diff
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;
|
||
}
|
||
}
|
||
- « Previous
- 1
- 2
- 3
- Next »