From 47dd9abeff4f60e7e498b98e54b56d5d8035bb42 Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 28 Oct 2007 00:07:33 +0000 Subject: [PATCH] only strip slashes on get, post, and cookie... git-svn-id: file:///home/shish/svn/shimmie2/trunk@584 7f39781d-f577-437e-ae19-be835c7a54ca --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 8255b392..db2106b9 100644 --- a/index.php +++ b/index.php @@ -21,7 +21,11 @@ EOD; function stripslashes_r($arr) { return is_array($arr) ? array_map('stripslashes_r', $arr) : stripslashes($arr); } -if(get_magic_quotes_gpc()) $GLOBALS = stripslashes_r($GLOBALS); +if(get_magic_quotes_gpc()) { + $_GET = stripslashes_r($_GET); + $_POST = stripslashes_r($_POST); + $_COOKIE = stripslashes_r($_COOKIE); +} // load base files