From 23bcbfcb05f392f1f81260ebd27098aba873ab36 Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@6030 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 {