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:
parent
3b51a5aa38
commit
bba1954017
|
@ -1959,11 +1959,13 @@ function wp_reset_vars($vars) {
|
||||||
global $$var;
|
global $$var;
|
||||||
|
|
||||||
if (!isset($$var)) {
|
if (!isset($$var)) {
|
||||||
if (empty($_REQUEST["$var"])) {
|
if (empty($_POST["$var"])) {
|
||||||
$$var = '';
|
if (empty($_GET["$var"]))
|
||||||
|
$$var = '';
|
||||||
|
else
|
||||||
|
$$var = $_GET["$var"];
|
||||||
} else {
|
} else {
|
||||||
$$var = $_REQUEST["$var"];
|
$$var = $_POST["$var"];
|
||||||
unset($_REQUEST["$wpvar"]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue