From bf8a4ccffa43bbb56e8f5efb3b4a7807cd417041 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 11 May 2009 16:58:52 +0000 Subject: [PATCH] MDL-17458 removing magic_quotes test from setup.php when MOODLE_SANE_INPUT defined, scripts must find better way to inform admins, sorry --- lib/setup.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/setup.php b/lib/setup.php index 26dd952115..47d6990142 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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')) { -- 2.39.5