Opened 3 months ago
Closed 3 months ago
#23519 closed defect (bug) (duplicate)
esc_url() mangles array format query variables in URLs
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Formatting | Version: | 3.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
http://example.com/?test[foo]=bar is a valid URL, but esc_url() mangles it into http://example.com/?testfoo=bar.
To reproduce:
$url = 'http://example.com/?test[foo]=bar'; echo '<pre>'; var_dump( $url ); var_dump( esc_url( $url ) ); echo '</pre>';
Also affects array format query variables without named keys, eg. foo[]=bar.
Tested back to 3.4. May affect earlier versions.
Change History (1)
comment:1
SergeyBiryukov — 3 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.

Duplicate of #16859.