Check for magic quotes only when running running on PHP pre-5.3
Fixes #92
This commit is contained in:
parent
3ee1805ae3
commit
61303915fe
|
@ -14,16 +14,18 @@ if (function_exists('ob_get_level')) {
|
|||
}
|
||||
}
|
||||
|
||||
if (get_magic_quotes_gpc()) {
|
||||
if (version_compare(phpversion(), '5.3.0', '<')) {
|
||||
if (get_magic_quotes_gpc()) {
|
||||
foreach ($_GET as $key => $val) {
|
||||
$_GET[$key] = stripslashes($val);
|
||||
}
|
||||
foreach ($_POST as $key => $val) {
|
||||
$_POST[$key] = stripslashes($val);
|
||||
}
|
||||
}
|
||||
if (get_magic_quotes_runtime()) {
|
||||
}
|
||||
if (get_magic_quotes_runtime()) {
|
||||
set_magic_quotes_runtime(0);
|
||||
}
|
||||
}
|
||||
|
||||
function fancyDie($message) {
|
||||
|
|
Loading…
Reference in New Issue