Don't escape the mail's subject in Special:PasswordReset
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 11 Nov 2013 20:19:19 +0000 (21:19 +0100)
committerIAlex <codereview@emsenhuber.ch>
Fri, 27 Dec 2013 17:02:04 +0000 (17:02 +0000)
So that special characters appears correctly (e.g. &).

Change-Id: Ifaa1f0f831fdfeb8dc46f43cbe1c96bc25cb4b76

includes/specials/SpecialPasswordReset.php

index 8e56574..082eed0 100644 (file)
@@ -277,7 +277,7 @@ class SpecialPasswordReset extends FormSpecialPage {
 
                $title = $this->msg( 'passwordreset-emailtitle' );
 
-               $this->result = $firstUser->sendMail( $title->escaped(), $this->email->text() );
+               $this->result = $firstUser->sendMail( $title->text(), $this->email->text() );
 
                if ( isset( $data['Capture'] ) && $data['Capture'] ) {
                        // Save the user, will be used if an error occurs when sending the email