Opened 12 years ago
Closed 11 years ago
#23402 closed defect (bug) (duplicate)
remove_query_arg messing up some URLs
Reported by: | lumpysimon | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
I'm using remove_query_arg to strip utm campaign parameters from user-submitted URLs, but for some URLs it is replacing dots with underscores.
E.g. if you pass http://www.nanowerk.com/news2/newsid=28843.php into this:
$url = remove_query_arg( array( 'utm_source' 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content' ), $url );
Change History (4)
Note: See
TracTickets for help on using
tickets.
ticket:23284:23284.2.diff would fix this.
The URL appears to be invalid though, per ticket:23284:3. Shouldn't it be
?newsid=28843.php
rather thannewsid=28843.php
?