Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#43756 closed defect (bug) (duplicate)

Use of < in wp-login.php

Reported by: thedemon12's profile thedemon12 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Mail Keywords:
Focuses: Cc:


In the line 367 of wp-login.php :
$message .= '<' . network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . ">\r\n";

Gmail as of now doesn't show any link in the mail when prompted for password reset. This is because Gmail interprets it as code in < >

To fix it , we shall replace < with ( . and it works after it.

Attachments (1)

wp.PNG (10.4 KB) - added by thedemon12 6 years ago.

Download all attachments as: .zip

Change History (2)

6 years ago

#1 @swissspidy
6 years ago

  • Component changed from Formatting to Mail
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @thedemon12, welcome to WordPress Trac! Thanks for the report.

Wrapping URLs in angle brackets is recommended behaviour by both the W3C and in Section C of the URI RFC.

If some email service includes the ending bracket in the link, unfortunately there's not much we can do to fix that.

Gmail usually handles this just fine. Problems only occur when using a plugin which adds HTML emails to WordPress, which causes the < and > to be interpreted as a HTML element.

With that being said, this has been reported numerous times in the past. See #23578, #43206, #18493, #21095, #23420, #39742.

Note: See TracTickets for help on using tickets.