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

WordPress Trac noreply at wordpress.org
Tue Feb 26 16:45:23 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:                |
--------------------------+------------------------------
Changes (by bananastalktome):

 * cc: bananastalktome@… (added)


Comment:

 The stripping spaces behavior is actually reflected in the unit tests,
 according to the test at
 [UT:source:trunk/tests/formatting/EscUrl.php at 1219#L8], it seems originally
 added in [UT331]. Seems unusual, and I wonder if the test should be
 changed to reflect the desired behavior instead (encoding spaces)?

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


More information about the wp-trac mailing list