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:
parent
8abaa3bad4
commit
3674f4a101
|
@ -1691,7 +1691,7 @@ class WP_MatchesMapRegex {
|
||||||
*/
|
*/
|
||||||
function callback($matches) {
|
function callback($matches) {
|
||||||
$index = intval(substr($matches[0], 9, -1));
|
$index = intval(substr($matches[0], 9, -1));
|
||||||
return ( isset( $this->_matches[$index] ) ? $this->_matches[$index] : '' );
|
return ( isset( $this->_matches[$index] ) ? urlencode($this->_matches[$index]) : '' );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue