Opened 13 months ago
Closed 13 months ago
#20528 closed defect (bug) (fixed)
$parsed_url['query'] doesn't always exist
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Canonical | Version: | 3.4 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: |
Description
_remove_qs_args_if_not_in_url() assumes there is always an array item 'query' returned by parse_url.
Wrapping it in an empty check will suppress the notice and silently return the $query_string
Attachments (2)
Change History (6)
johnjamesjacoby — 13 months ago
- Keywords commit added
Yes, looks good. Could use some direct unit tests.
Note: See
TracTickets for help on using
tickets.

There should also be an else branch so that all of the query args to check get removed if the URL doesn't have a query string, see 20528.diff.