diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-03 22:44:59 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-03 22:44:59 +0100 |
commit | e55eb89cc5500e2b0552cf2f97734300e358894f (patch) | |
tree | 05758d32116142c96a05e976066975fc87d66678 /inc/init.php | |
parent | b7b9e2f23c056d1778b8aaa689ac65e1c61884b4 (diff) | |
download | rpg-e55eb89cc5500e2b0552cf2f97734300e358894f.tar.gz rpg-e55eb89cc5500e2b0552cf2f97734300e358894f.tar.bz2 |
punbb backend dies when magic quotes enabled
darcs-hash:20060303214459-7ad00-17f399257acafed5914eeb727b45b2fa984f00e8.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r-- | inc/init.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index 31ad8d37c..fc7e5abec 100644 --- a/inc/init.php +++ b/inc/init.php @@ -60,13 +60,14 @@ } // kill magic quotes - if (get_magic_quotes_gpc()) { + if (get_magic_quotes_gpc() && !defined('MAGIC_QUOTES_STRIPPED')) { if (!empty($_GET)) remove_magic_quotes($_GET); if (!empty($_POST)) remove_magic_quotes($_POST); if (!empty($_COOKIE)) remove_magic_quotes($_COOKIE); if (!empty($_REQUEST)) remove_magic_quotes($_REQUEST); if (!empty($_SESSION)) remove_magic_quotes($_SESSION); @ini_set('magic_quotes_gpc', 0); + define('MAGIC_QUOTES_STRIPPED',1); } @set_magic_quotes_runtime(0); @ini_set('magic_quotes_sybase',0); |