Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 3 years ago

#14140 closed enhancement (fixed)

Wrap URL for password reset in angle brackets

Reported by: demetris Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0
Component: Mail Keywords: has-patch
Focuses: Cc:


Some email clients do not handle well URLs that wrap across lines; that is, they fail to make them clickable in their entirety.

This can confuse WP users who are emailed a URL to reset their passwords, because clicking does not lead to a valid URL. See this wp-hackers thread:


Core could fix this for several (most? all?) problematic email clients by simply enclosing the URL in angle brackets (the less than and greater than signs) before sending it.

I attach a tentative patch to get us going.

See also a couple of mentions/recommendations of the angle brackets as delimiters for URIs in plain text:


http://www.ietf.org/rfc/rfc3986.txt (go to Appendix C)

Attachments (1)

t14140-url-angle-brackets.diff (769 bytes) - added by demetris 5 years ago.
Encloses URL for password reset in angle brackets

Download all attachments as: .zip

Change History (5)

@demetris5 years ago

Encloses URL for password reset in angle brackets

comment:1 @nacin5 years ago

  • Component changed from General to Mail
  • Keywords dev-feedback removed
  • Milestone changed from Awaiting Review to 3.1

Agreed with westi on this (as said over wp-hackers). I imagine there are other instances where < > would be useful, but this is a start.

comment:2 @azizur5 years ago

  • Cc prodevstudio+wordpress@… added

comment:3 @westi5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [16285]) Wrap the reset link in <> so as to protect it when it goes over multiple lines in an email client. Fixes #14140 props demetris.

comment:4 @iandunn3 years ago

  • Cc ian_dunn@… added

This causes the URL to be parsed as HTML (and therefore not displayed) when the content-type is "text/html". See #23578.

Last edited 3 years ago by iandunn (previous) (diff)
Note: See TracTickets for help on using tickets.