Make WordPress Core


Ignore:
Timestamp:
10/14/2019 07:26:08 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.
  • Customizer: Properly sanitize background images.

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

File:
1 edited

Legend:

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

    r39964 r46503  
    13991399                        , 'attachment_id'
    14001400                        , 'name'
    1401                         , 'static'
    14021401                        , 'pagename'
    14031402                        , 'page_id'
    … …  
    15071506                        // post is being queried.
    15081507                        $this->is_single = true;
    1509                 } elseif ( '' != $qv['static'] || '' != $qv['pagename'] || !empty($qv['page_id']) ) {
     1508                } elseif ( '' != $qv['pagename'] || !empty($qv['page_id']) ) {
    15101509                        $this->is_page = true;
    15111510                        $this->is_single = false;
Note: See TracChangeset for help on using the changeset viewer.