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

WordPress Trac noreply at wordpress.org
Wed Aug 19 09:59:56 UTC 2015


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

Comment (by bfintal):

 Since `esc_url` is also used when printing out links & `href` attributes,
 My opinion is that it should not make the inputted url wrong, so I would
 prefer that spaces were encoded to perhaps `%20` or `+`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23605#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list