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

WordPress Trac noreply at wordpress.org
Thu Sep 3 09:14:56 UTC 2015


#23605: esc_url() strips spaces instead of encoding them
------------------------------------------+--------------------------
 Reporter:  johnbillion                   |       Owner:  johnbillion
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  4.4
Component:  Formatting                    |     Version:  2.8
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+--------------------------

Comment (by johnbillion):

 Replying to [comment:16 enshrined]:
 > It may be worth deciding what happens for multiple spaces, should these
 stay in the form of `%20%20` or be stripped down to a single `%20`?
 Thanks for the patch! Multiple consecutive spaces are fine, it's just the
 encoding of them (or rather, non-removal of them) that `esc_url()` is
 concerned with.

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


More information about the wp-trac mailing list