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:
parent
d2c1ec66a9
commit
47dd9abeff
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue