only strip slashes on get, post, and cookie...

git-svn-id: file:///home/shish/svn/shimmie2/trunk@584 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-10-28 00:07:33 +00:00
parent d2c1ec66a9
commit 47dd9abeff

View file

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