From 56ca1c60def7e95d966989afaf7903468dd691ad Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 26 Feb 2008 19:51:13 +0000 Subject: [PATCH] MDL-12927 installer should detect the magic quotes settings and undo the slashes if necessary; merged from MOODLE_19_STABLE --- install.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.php b/install.php index f0807e922c..e10cf07fed 100644 --- a/install.php +++ b/install.php @@ -93,8 +93,15 @@ if (isset($_POST['stage'])) { /// Get the stage for which the form was set and the next stage we are going to + $gpc = ini_get('magic_quotes_gpc'); + $gpc = ($gpc == '1' or strtolower($gpc) == 'on'); + /// Store any posted data foreach ($_POST as $setting=>$value) { + if ($gpc) { + $value = stripslashes($value); + } + $INSTALL[$setting] = $value; } -- 2.39.5