#4903 closed defect (bug) (fixed)
query strings with a forward slash give add_query_arg() problems
Reported by: | markjaquith | Owned by: | markjaquith |
---|---|---|---|
Milestone: | 2.3 | Priority: | high |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
echo remove_query_arg('preview', 'p=16&preview=true/');
Expected result:
p=16
Actual result:
p=16&preview=true/
add_query_arg() is checking for a forward slash in the passed $uri
. If present, it is assumed that $uri
is a base with an empty query string, instead of being a pure query string.
Change History (3)
Note: See
TracTickets for help on using
tickets.
(In [6030]) 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