MDL-43528 remove all traces of magic quotes hacking from moodle core

This commit is contained in:
Petr Škoda
2014-01-02 10:15:06 +08:00
parent bbb291b7b7
commit 3e5226ab6e
8 changed files with 0 additions and 80 deletions
-8
View File
@@ -710,9 +710,6 @@ function setup_validate_php_configuration() {
if (ini_get_bool('session.auto_start')) {
print_error('sessionautostartwarning', 'admin');
}
if (ini_get_bool('magic_quotes_runtime')) {
print_error('fatalmagicquotesruntime', 'admin');
}
}
/**
@@ -994,11 +991,6 @@ function workaround_max_input_vars() {
$values = array();
parse_str($chunk, $values);
if (ini_get_bool('magic_quotes_gpc')) {
// Use the same logic as lib/setup.php to work around deprecated magic quotes.
$values = array_map('stripslashes_deep', $values);
}
merge_query_params($_POST, $values);
merge_query_params($_REQUEST, $values);
}