Merge branch 'w18_MDL-26028_m23_xsendfile' of git://github.com/skodak/moodle

This commit is contained in:
Sam Hemelryk
2012-05-02 11:48:24 +12:00
15 changed files with 355 additions and 314 deletions
+9
View File
@@ -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