#4878 closed defect (bug) (fixed)
add_query_args() mangles URLs with encoded arrays in them
Reported by: | ryan | Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
?cats%5B%5D=3 is changed to ?cats=Array. This breaks paging links and canonical redirects for these URLs.
Attachments (2)
Change History (11)
#2
@
17 years ago
Need to pass '&' as separator, but our PHP4 compat function doesn't respect that. I've not found a suitable replacement function. The one in PEAR is no good.
#3
@
17 years ago
003
Upgrades our http_build_query() compat function, which has been renamed to _http_build_query() with a pass-through for compat. Because early PHP5 versions don't accept the separator param, we could get wacky results if it is set in php.ini, so unless it is '&' in php.ini, we use our own version.
I haven't thoroughly tested this... but just wanted to throw it out there before I retired for the night.
#5
@
17 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This broke some things in the admin where an &
delimited query string was being passed to add_query_arg()
Proposed solution is converting &
to &
in add_query_arg()
We should be deprecating the passing of &
to these functions.
First try