From 4e5d409d9163ead9d2d65b052b3df165f05534f9 Mon Sep 17 00:00:00 2001 From: shish Date: Sun, 28 Oct 2007 00:08:16 +0000 Subject: [PATCH] And move *that* one to stable... git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.1@585 7f39781d-f577-437e-ae19-be835c7a54ca --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index a62a0624..80035608 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