Created
May 17, 2010 18:13
-
-
Save pwlin/404048 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
private function disable_magic_quotes(){ | |
if(ini_get('magic_quotes_gpc')){ | |
function strip_all_params(&$item){ $item = stripslashes($item); } | |
array_walk_recursive($_GET,'strip_all_params'); | |
array_walk_recursive($_POST,'strip_all_params'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment