[wp-trac] [WordPress Trac] #23605: esc_url() strips spaces instead of encoding them

WordPress Trac noreply at wordpress.org
Wed Feb 27 22:13:05 UTC 2013


#23605: esc_url() strips spaces instead of encoding them
--------------------------+------------------------------
 Reporter:  johnbillion   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by rmccue):

 Space is an invalid character in URLs, so it should be escaped just like
 any other invalid character. Stripping them is absolutely the wrong thing
 to do.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23605#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list