Make WordPress Core

Changeset 3969


Ignore:
Timestamp:
07/05/2006 03:59:40 AM (20 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r3946 r3969  
    19601960
    19611961                if (!isset($$var)) {
    1962                         if (empty($_REQUEST["$var"])) {
    1963                                 $$var = '';
     1962                        if (empty($_POST["$var"])) {
     1963                                if (empty($_GET["$var"]))
     1964                                        $$var = '';
     1965                                else
     1966                                        $$var = $_GET["$var"];
    19641967                        } else {
    1965                                 $$var = $_REQUEST["$var"];
    1966                                 unset($_REQUEST["$wpvar"]);
     1968                                $$var = $_POST["$var"];
    19671969                        }
    19681970                }
Note: See TracChangeset for help on using the changeset viewer.