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

git-svn-id: https://develop.svn.wordpress.org/trunk@13071 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-02-13 00:02:47 +00:00
parent 8abaa3bad4
commit 3674f4a101
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]) : '' );
}
}