MDL-22537 new html purifier backported to stable, unfortunately PHP5 only

This commit is contained in:
Petr Skoda
2010-05-21 11:39:22 +00:00
parent f8502768a2
commit db359e6369
330 changed files with 13929 additions and 10060 deletions
+4 -1
View File
@@ -92,6 +92,10 @@ global $HTTPSPAGEREQUIRED;
/// sometimes default PHP settings are borked on shared hosting servers, I wonder why they have to do that??
@ini_set('precision', 14); // needed for upgrades and gradebook
/// New versions of HTML Purifier are not compatible with PHP 4
if (version_compare(phpversion(), "5.0.5") < 0) {
$CFG->enablehtmlpurifier = 0;
}
/// store settings from config.php in array in $CFG - we can use it later to detect problems and overrides
$CFG->config_php_settings = (array)$CFG;
@@ -256,7 +260,6 @@ global $HTTPSPAGEREQUIRED;
$originaldatabasedebug = -1;
}
/// For now, only needed under apache (and probably unstable in other contexts)
if (function_exists('register_shutdown_function')) {
register_shutdown_function('moodle_request_shutdown');