]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17458 removing magic_quotes test from setup.php when MOODLE_SANE_INPUT defined...
authorskodak <skodak>
Mon, 11 May 2009 16:58:52 +0000 (16:58 +0000)
committerskodak <skodak>
Mon, 11 May 2009 16:58:52 +0000 (16:58 +0000)
lib/setup.php

index 26dd952115d78e0a9b985ceb8fabae793a5457e3..47d69901428d8efed2a48f1e6b743deef00eeb47 100644 (file)
@@ -406,12 +406,6 @@ global $SCRIPT;
     $CFG->javascript  = $CFG->libdir .'/javascript.php';
     $CFG->moddata     = 'moddata';
 
-// Alas, in some cases we cannot deal with magic_quotes.
-    if (defined('MOODLE_SANE_INPUT') && ini_get_bool('magic_quotes_gpc')) {
-        mdie("Facilities that require MOODLE_SANE_INPUT "
-             . "cannot work with magic_quotes_gpc. Please disable "
-             . "magic_quotes_gpc.");
-    }
 /// A hack to get around magic_quotes_gpc being turned on
 /// It is strongly recommended to disable "magic_quotes_gpc"!
     if (ini_get_bool('magic_quotes_gpc')) {