[wp-trac] [WordPress Trac] #11363: Password Email Subject - Special Chars

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 8 15:10:51 UTC 2009


#11363: Password Email Subject - Special Chars
--------------------------+-------------------------------------------------
 Reporter:  sp1ncycle     |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  high          |   Milestone:  2.9  
Component:  General       |     Version:  2.8.5
 Severity:  normal        |    Keywords:       
--------------------------+-------------------------------------------------
 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));
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11363>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list