Opened 14 years ago
Closed 13 years ago
#23402 closed defect (bug) (duplicate)
remove_query_arg messing up some URLs
| Reported by: | lumpysimon | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.phprather thannewsid=28843.php?