From 983bc646756d7ab276ceb2871e832e0176316fb1 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 6 Apr 2008 15:06:11 +0000 Subject: [PATCH] check get_magic_quotes_gpc which is deprecated git-svn-id: svn://svn.lighttpd.net/xcache/trunk@549 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- admin/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/common.php b/admin/common.php index 7470b6b..7ef9cec 100644 --- a/admin/common.php +++ b/admin/common.php @@ -91,7 +91,7 @@ error_reporting(E_ALL); ini_set('display_errors', 'On'); define('REQUEST_TIME', time()); -if (get_magic_quotes_gpc()) { +if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) { $mqs = (bool) ini_get('magic_quotes_sybase'); $_GET = stripaddslashes_array($_GET, $mqs); $_POST = stripaddslashes_array($_POST, $mqs);