make sure magic quote workaround actually works

This commit is contained in:
Andrew Dolgov 2010-09-07 13:22:10 +04:00
parent 84c7b824fb
commit 5fa173729e
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
/* remove ill effects of magic quotes */ /* remove ill effects of magic quotes */
if (!get_magic_quotes_gpc()) { if (get_magic_quotes_gpc()) {
function stripslashes_deep($value) { function stripslashes_deep($value) {
$value = is_array($value) ? $value = is_array($value) ?
array_map('stripslashes_deep', $value) : stripslashes($value); array_map('stripslashes_deep', $value) : stripslashes($value);