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

WordPress Trac noreply at wordpress.org
Fri Jul 3 14:27:13 UTC 2015


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

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33064"]:
 {{{
 #!CommitTicketReference repository="" revision="33064"
 Don't strip newline in esc_url() when protocol is mailto:

 The mailto protocol is a bit different than the other protocols in that
 new lines are something you might realistically want to include. Includes
 tests to make sure that http protocol urls that contain mailto: aren't
 affected. Tests for stripping newlines in general already exist.

 Fixes #31632
 Props danielbachhuber
 }}}

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


More information about the wp-trac mailing list