From 3674f4a10162485e26bc81b64ee0ac95283b0acd Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 13 Feb 2010 00:02:47 +0000 Subject: [PATCH] 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 --- wp-includes/classes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 43d38734da..e6aa1b8cfb 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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]) : '' ); } }