手动关闭 magic_quotes_gpc
2015-12-07 PHP 967
//手动关闭 magic_quotes_gpc
if (ini_get(\'magic_quotes_gpc\')) {
function stripslashesRecursive(array $array)
{
foreach ($array as $k => $v) {
//手动关闭 magic_quotes_gpc if (ini_get('magic_quotes_gpc')) { function stripslashesRecursive(array $array) { foreach ($array as $k => $v) { if (is_string($v)) { $array[$k] = stripslashes($v); } else if (is_array($v)) { $array[$k] = stripslashesRecursive($v); } } return $array; } $_GET = stripslashesRecursive($_GET); $_POST = stripslashesRecursive($_POST); }
很赞哦! (0)
相关文章
文章评论
-
-
-
0条评论