[wp-trac] [WordPress Trac] #31632: Don't strip newline in esc_url() when protocol is mailto:

WordPress Trac noreply at wordpress.org
Thu Jul 2 01:12:53 UTC 2015


#31632: Don't strip newline in esc_url() when protocol is mailto:
-----------------------------+------------------------------
 Reporter:  danielbachhuber  |       Owner:  danielbachhuber
     Type:  defect (bug)     |      Status:  assigned
 Priority:  normal           |   Milestone:  4.3
Component:  Formatting       |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by dd32):

 I'm fine with letting it in if others feel strongly, but I still think
 it's an significant edge-case that doesn't realistically need to be
 supported.

 The unit tests should be expanded to cover other use-cases as well. It
 should show it in action, and that it still works as intended for other
 url forms (assuming that there isn't another test that handles that
 already)

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


More information about the wp-trac mailing list