[wp-trac] [WordPress Trac] #32562: Password reset error - unwanted character in the link with some email service (they are parsing incorrectly) - make it more bulletproof

WordPress Trac noreply at wordpress.org
Wed Jan 18 05:27:41 UTC 2017


#32562: Password reset error - unwanted character in the link with some email
service (they are parsing incorrectly) - make it more bulletproof
--------------------------+----------------------
 Reporter:  sinusepsilon  |       Owner:
     Type:  enhancement   |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Mail          |     Version:  4.2.2
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Replying to [comment:2 cbutlerjr]:
 > True, but as @sinusepsilon mentioned in the thread, it appears there is
 a possible solution by making the link not the end of the email.

 The thread has an assumption that adding some text after the link would
 fix the issue for all problematic services:
  So the problem is that the mail ends with a link. I think it would be
 easy for wordpress to send mails with some text after the link, so I
 suppose this could solve the problem with all the problematic mail
 services.

 From my experience with this issue, most of the affected services are
 problematic in their own way: some treat the closing angle bracket as a
 part of the URL, some strip the link altogether, etc., and it doesn't
 matter whether the link is at the end of the email or not.

 Wrapping URLs in angle brackets is recommended behaviour by both
 [https://www.w3.org/Addressing/URL/5.1_Wrappers.html the W3C] and in
 [https://www.ietf.org/rfc/rfc3986.txt Section C of the URI RFC].

 We could probably improve the situation in #23578 in case
 `wp_mail_content_type` is set to `text/html` by a plugin, but otherwise I
 don't think there's much we'll be able to do here.

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


More information about the wp-trac mailing list