Merge branch 'w18_MDL-26028_m23_xsendfile' of git://github.com/skodak/moodle
This commit is contained in:
@@ -891,6 +891,15 @@ if (PHPUNIT_TEST) {
|
||||
|
||||
}
|
||||
|
||||
// // try to detect IE6 and prevent gzip because it is extremely buggy browser
|
||||
if (!empty($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
|
||||
@ini_set('zlib.output_compression', 'Off');
|
||||
if (function_exists('apache_setenv')) {
|
||||
@apache_setenv('no-gzip', 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// note: we can not block non utf-8 installations here, because empty mysql database
|
||||
// might be converted to utf-8 in admin/index.php during installation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user