mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-12927 installer should detect the magic quotes settings and undo the slashes if necessary; merged from MOODLE_19_STABLE
This commit is contained in:
parent
03076be407
commit
56ca1c60de
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user