[wp-trac] [WordPress Trac] #23402: remove_query_arg messing up some URLs

WordPress Trac noreply at wordpress.org
Wed Feb 6 01:00:42 UTC 2013


#23402: remove_query_arg messing up some URLs
-----------------------------+--------------------------
 Reporter:  lumpysimon       |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 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 );

 }}}

 it returns http://www_nanowerk_com/news2/newsid=28843.php

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23402>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list