Make WordPress Core

Changeset 13071


Ignore:
Timestamp:
02/13/2010 12:02:47 AM (15 years ago)
Author:
dd32
Message:

Do not poison query vars with /&foo=bar/ in requested URL. See #8949

File:
1 edited

Legend:

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

    r12925 r13071  
    16921692    function callback($matches) {
    16931693        $index = intval(substr($matches[0], 9, -1));
    1694         return ( isset( $this->_matches[$index] ) ? $this->_matches[$index] : '' );
     1694        return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : '' );
    16951695    }
    16961696
Note: See TracChangeset for help on using the changeset viewer.