Make WordPress Core


Ignore:
Timestamp:
10/14/2019 06:38:34 PM (7 years ago)
Author:
whyisjake
Message:

Backporting several bug fixes.

  • Query: Remove the static query property.
  • HTTP API: Protect against hex interpretation.
  • Filesystem API: Prevent directory travelersals when creating new folders.
  • Administration: Ensure that admin referer nonce is valid.
  • REST API: Send a Vary: Origin header on GET requests.

Backports [46474], [46475], [46476], [46477], [46478], [46483], [46485] to the 5.0 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9/src/wp-includes/class-wp-query.php

    r42597 r46493  
    530530                        , 'attachment_id'
    531531                        , 'name'
    532                         , 'static'
    533532                        , 'pagename'
    534533                        , 'page_id'
    … …  
    765764                        // post is being queried.
    766765                        $this->is_single = true;
    767                 } elseif ( '' != $qv['static'] || '' != $qv['pagename'] || !empty($qv['page_id']) ) {
     766                } elseif ( '' != $qv['pagename'] || !empty($qv['page_id']) ) {
    768767                        $this->is_page = true;
    769768                        $this->is_single = false;
Note: See TracChangeset for help on using the changeset viewer.