Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r23436 r23554  
    17341734        if ( !empty($q['cat']) && '0' != $q['cat'] && !$this->is_singular && $this->query_vars_changed ) {
    17351735            $q['cat'] = ''.urldecode($q['cat']).'';
     1736            $q['cat'] = addslashes_gpc($q['cat']);
    17361737            $cat_array = preg_split('/[,\s]+/', $q['cat']);
    17371738            $q['cat'] = '';
     
    21872188        // If a search pattern is specified, load the posts that match
    21882189        if ( !empty($q['s']) ) {
     2190            // added slashes screw with quote grouping when done early, so done later
     2191            $q['s'] = stripslashes($q['s']);
    21892192            if ( empty( $_GET['s'] ) && $this->is_main_query() )
    21902193                $q['s'] = urldecode($q['s']);
     
    22952298        } else {
    22962299            $q['author'] = (string)urldecode($q['author']);
     2300            $q['author'] = addslashes_gpc($q['author']);
    22972301            if ( strpos($q['author'], '-') !== false ) {
    22982302                $eq = '!=';
     
    23582362            }
    23592363            $q['orderby'] = urldecode($q['orderby']);
     2364            $q['orderby'] = addslashes_gpc($q['orderby']);
    23602365
    23612366            $orderby_array = array();
Note: See TracChangeset for help on using the changeset viewer.