Source code raw phps
<?php
/**
* Simple magic_quotes_gpc cleanup.
* Assumes no quotes in keys.
*/
function clean (&$item, $key) {
$item = stripslashes($item);
}
if (get_magic_quotes_gpc()) {
array_walk_recursive($_GET, 'clean');
array_walk_recursive($_POST, 'clean');
array_walk_recursive($_REQUEST, 'clean');
array_walk_recursive($_COOKIE, 'clean');
}
?>
Comments
02.06.2008
#1