Use POST and GET instead of REQUEST since they are sanitized. fixes #2888

git-svn-id: http://svn.automattic.com/wordpress/trunk@3969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-05 03:59:40 +00:00
parent c132456b46
commit d19217ac42
1 changed files with 6 additions and 4 deletions

View File

@ -1959,11 +1959,13 @@ function wp_reset_vars($vars) {
global $$var;
if (!isset($$var)) {
if (empty($_REQUEST["$var"])) {
$$var = '';
if (empty($_POST["$var"])) {
if (empty($_GET["$var"]))
$$var = '';
else
$$var = $_GET["$var"];
} else {
$$var = $_REQUEST["$var"];
unset($_REQUEST["$wpvar"]);
$$var = $_POST["$var"];
}
}
}