note 31088 added to function.set-magic-quotes-runtime

From: Date: Wed, 09 Apr 2003 11:08:54 +0000
Subject: note 31088 added to function.set-magic-quotes-runtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-46404@lists.php.net to get a copy of this message
Sorry,The code ablove is error.This is the Fixed Version: function paddslashes(&$a) { if (is_array($a)) { foreach ($a as $fname => $fval) { if (is_array($fval)) paddslashes($a[$fname],$tmp[$fname]); else $a[$fname] = addslashes($fval); } } } if (phpversion() < '4.1.0') { isset($HTTP_SESSION_VARS) ? $_SESSION = $HTTP_SESSION_VARS : ''; isset($HTTP_SERVER_VARS) ? $_SERVER = $HTTP_SERVER_VARS : ''; isset($HTTP_ENV_VARS) ? $_ENV = $HTTP_ENV_VARS : ''; isset($HTTP_FILES_VARS) ? $_FILES = $HTTP_FILES_VARS : ''; if (get_magic_quotes_gpc() == 1) { isset($HTTP_GET_VARS) ? $_GET = $HTTP_GET_VARS : ''; isset($HTTP_POST_VARS) ? $_POST = $HTTP_POST_VARS : ''; isset($HTTP_COOKIE_VARS) ? $_COOKIE = $HTTP_COOKIE_VARS : ''; } else { isset($HTTP_GET_VARS) ? paddslashes($HTTP_GET_VARS) : ''; isset($HTTP_POST_VARS) ? paddslashes($HTTP_POST_VARS) : ''; isset($HTTP_COOKIE_VARS) ? paddslashes($HTTP_COOKIE_VARS) : ''; $_GET = $HTTP_GET_VARS; $_POST = $HTTP_POST_VARS; $_COOKIE = $HTTP_COOKIE_VARS; } } else { if (get_magic_quotes_gpc() != 1) { isset($_GET) ? paddslashes($_GET) : ''; isset($_POST) ? paddslashes($_POST) : ''; isset($_COOKIE) ? paddslashes($_COOKIE) : ''; } } -- http://www.php.net/manual/en/function.set-magic-quotes-runtime.php http://master.php.net/manage/user-notes.php?action=edit+31088 http://master.php.net/manage/user-notes.php?action=delete+31088 http://master.php.net/manage/user-notes.php?action=reject+31088

« previous php.notes (#46404) next »