1
0
Fork 0

check get_magic_quotes_gpc which is deprecated

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@549 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent bedd56400a
commit 983bc64675

@ -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);

Loading…
Cancel
Save