(bug 41443) Link in password reset is broken
authorMarius Hoch <hoo@online.de>
Sat, 27 Oct 2012 00:10:02 +0000 (02:10 +0200)
committerMarius Hoch <hoo@online.de>
Sun, 28 Oct 2012 20:00:32 +0000 (21:00 +0100)
The link in the password reset email was broken, because the
paramters for passwordreset-emailtext-user were over-escaped.
I've fixed this with passing the message unescaped, per suggestion.

Change-Id: If2665a419f5ee11602d4a69b60f7c4786f816ee2

includes/specials/SpecialPasswordReset.php

index 97f0037..d7cf693 100644 (file)
@@ -255,7 +255,7 @@ class SpecialPasswordReset extends FormSpecialPage {
 
                $title = $this->msg( 'passwordreset-emailtitle' );
 
-               $this->result = $firstUser->sendMail( $title->escaped(), $this->email->escaped() );
+               $this->result = $firstUser->sendMail( $title->escaped(), $this->email->text() );
 
                // Blank the email if the user is not supposed to see it
                if( !isset( $data['Capture'] ) || !$data['Capture'] ) {