From 1d86c8ea4cf1690e61590d3e42e3a942c3158bfc Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 19 Feb 2005 18:31:29 +0000 Subject: [PATCH] I confused stripslashes with addslashes :o) --- lib/setup.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/setup.php b/lib/setup.php index dac10b4d838..35a5d2aebd9 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -227,15 +227,15 @@ global $THEME; /// A hack to get around magic_quotes_gpc being turned off if (!ini_get_bool('magic_quotes_gpc') ) { - function stripslashes_deep($value) { + function addslashes_deep($value) { $value = is_array($value) ? - array_map('stripslashes_deep', $value) : - stripslashes($value); + array_map('addslashes_deep', $value) : + addslashes($value); return $value; } - $_POST = array_map('stripslashes_deep', $_POST); - $_GET = array_map('stripslashes_deep', $_GET); - $_COOKIE = array_map('stripslashes_deep', $_COOKIE); + $_POST = array_map('addslashes_deep', $_POST); + $_GET = array_map('addslashes_deep', $_GET); + $_COOKIE = array_map('addslashes_deep', $_COOKIE); }