WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/14/2009 10:09:54 PM (11 years ago)
Author:
westi
Message:

Fix some more html encoding in email subject issues. Fixes #9913.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r12388 r12398  
    11371137    if ( $user->user_email != get_option('admin_email') ) {
    11381138        $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n";
    1139         wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), @html_entity_decode(get_option('blogname'), ENT_QUOTES, get_option('blog_charset'))), $message);
     1139        // The blogname option is escaped with esc_html on the way into the database in sanitize_option
     1140        // we want to reverse this for the plain text arena of emails.
     1141        $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
     1142        wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message);
    11401143    }
    11411144}
Note: See TracChangeset for help on using the changeset viewer.