Make WordPress Core


Ignore:
Timestamp:
03/28/2014 02:43:04 AM (12 years ago)
Author:
nacin
Message:

Always decode special characters for email subjects.

props tlovett1, jeremyfelt.
fixes #25346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r27706 r27801  
    260260    $content = str_replace( '###SITEURL###', network_home_url(), $content );
    261261
    262     wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), get_option( 'blogname' ) ), $content );
     262    wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );
    263263}
    264264add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
     
    329329        $content = str_replace( '###SITEURL###', network_home_url(), $content );
    330330
    331         wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), get_option( 'blogname' ) ), $content );
     331        wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content );
    332332        $_POST['email'] = $current_user->user_email;
    333333    }
Note: See TracChangeset for help on using the changeset viewer.