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

git-svn-id: http://svn.automattic.com/wordpress/trunk@13071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-02-13 00:02:47 +00:00
parent a392f8a441
commit 6a4a3631e3
1 changed files with 1 additions and 1 deletions

View File

@ -1691,7 +1691,7 @@ class WP_MatchesMapRegex {
*/
function callback($matches) {
$index = intval(substr($matches[0], 9, -1));
return ( isset( $this->_matches[$index] ) ? $this->_matches[$index] : '' );
return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : '' );
}
}