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

git-svn-id: https://develop.svn.wordpress.org/trunk@3969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-07-05 03:59:40 +00:00
parent 3b51a5aa38
commit bba1954017
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"];
}
}
}