Opened 7 years ago
Closed 7 years ago
#43756 closed defect (bug) (duplicate)
Use of < in wp-login.php
Reported by: | thedemon12 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Keywords: | ||
Focuses: | Cc: |
Description
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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
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.