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
This commit is contained in:
Mark Jaquith 2007-09-04 05:21:54 +00:00
parent 5a4c102696
commit 23bcbfcb05
1 changed files with 1 additions and 1 deletions

View File

@ -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 {