Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (get_magic_quotes_gpc())
- {
- function AutoDeslash($val)
- {
- if (is_array($val))
- return array_map('AutoDeslash', $val);
- else if (is_string($val))
- return stripslashes($val);
- }
- $_GET = array_map('AutoDeslash', $_GET);
- $_POST = array_map('AutoDeslash', $_POST);
- $_COOKIE = array_map('AutoDeslash', $_COOKIE);
- }
Add Comment
Please, Sign In to add comment