From ab71cc4a4f5c5bc414ce0ac3c25fc5019f457035 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 4 Sep 2007 05:21:54 +0000 Subject: [PATCH] Require a slash AND the absence of an equals sign to designate the passed $uri as a base (without a query string). fixes #4903 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@6030 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f8ae949a2e..15589fe744 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -627,7 +627,7 @@ function add_query_arg() { $base = $parts[0] . '?'; $query = $parts[1]; } - } elseif (!empty($protocol) || strpos($uri, '/') !== false) { + } elseif (!empty($protocol) || ( strpos($uri, '/') !== false && strpos($uri, '=') === false ) ) { $base = $uri . '?'; $query = ''; } else {