diff options
author | Andrew Dolgov <[email protected]> | 2007-05-19 14:47:37 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-19 14:47:37 +0100 |
commit | ce885e215e8084bd3b9e94f6237d33e38078757b (patch) | |
tree | c1f0d70930ee78f771e9a78c9a12425dfa5e19f6 /backend.php | |
parent | 5a6c21c71ab7cb489ef487c03cf5bae444b0da11 (diff) |
disable magic quotes if needed
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 3b5c071c4..189e89e31 100644 --- a/backend.php +++ b/backend.php @@ -1,6 +1,15 @@ <?php error_reporting(E_ERROR | E_WARNING | E_PARSE); + /* remove ill effects of magic quotes */ + + if (get_magic_quotes_gpc()) { + $_GET = array_map('stripslashes', $_GET); + $_POST = array_map('stripslashes', $_POST); + $_REQUEST = array_map('stripslashes', $_REQUEST); + $_COOKIE = array_map('stripslashes', $_COOKIE); + } + require_once "sessions.php"; require_once "modules/backend-rpc.php"; |