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:
parent
c132456b46
commit
d19217ac42
|
@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue