[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 00:19:16 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 jorbin):
I think that this is an edgecase, but one worth supporting. mailto is an
acceptable protocal to be run through esc_url and it allows new lines.
The fact that this contains unit tests means that the cost of the
supporting the edge case is low.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31632#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list