mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
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
This commit is contained in:
parent
5913b16065
commit
ab71cc4a4f
@ -627,7 +627,7 @@ function add_query_arg() {
|
|||||||
$base = $parts[0] . '?';
|
$base = $parts[0] . '?';
|
||||||
$query = $parts[1];
|
$query = $parts[1];
|
||||||
}
|
}
|
||||||
} elseif (!empty($protocol) || strpos($uri, '/') !== false) {
|
} elseif (!empty($protocol) || ( strpos($uri, '/') !== false && strpos($uri, '=') === false ) ) {
|
||||||
$base = $uri . '?';
|
$base = $uri . '?';
|
||||||
$query = '';
|
$query = '';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user