Opened 15 years ago
Closed 15 years ago
#11363 closed defect (bug) (duplicate)
Password Email Subject - Special Chars
Reported by: | sp1ncycle | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.8.5 |
Component: | Users | Keywords: | |
Focuses: | Cc: |
Description
The Subject in the email has htmlspecialchars and single quotes showup as this:
'
File: wp-login.php
Line: 166
$title = sprintf(__('[%s] Password Reset'), get_option('blogname'));
and
File: wp-login.php
Line: 211
$title = sprintf(__('[%s] Your new password'), get_option('blogname'));
The Fix:
$title = sprintf(__('[%s] Password Reset'), htmlspecialchars_decode(get_option('blogname'), ENT_QUOTES)); $title = sprintf(__('[%s] Your new password'), htmlspecialchars_decode(get_option('blogname'), ENT_QUOTES));
Change History (3)
Note: See
TracTickets for help on using
tickets.
the charset also needs to be passed, with an @ in front of the function call to avoid warnings on older platforms.