(bug 11056) Closing bracket skipped in emailed links
authorFederico Leva <federicoleva@tiscali.it>
Wed, 19 Sep 2012 14:33:19 +0000 (16:33 +0200)
committerFederico Leva <federicoleva@tiscali.it>
Wed, 19 Sep 2012 14:33:19 +0000 (16:33 +0200)
Fixing password reminders, reported on TWN.
Adding <> as already done for enotif and translationnotif.
Directly in the parameter as requested by Siebrand on I5aac9a75.

Change-Id: Ib796d28b73ae61e472113dd062e487fbdb8bf1bb

includes/specials/SpecialPasswordReset.php
includes/specials/SpecialUserlogin.php

index efb5765..c09da4e 100644 (file)
@@ -247,7 +247,7 @@ class SpecialPasswordReset extends FormSpecialPage {
                        $username,
                        $passwordBlock,
                        count( $passwords ),
-                       Title::newMainPage()->getCanonicalUrl(),
+                       '<' . Title::newMainPage()->getCanonicalUrl() . '>',
                        round( $wgNewPasswordExpiry / 86400 )
                );
 
index c101897..3e7f37a 100644 (file)
@@ -833,7 +833,7 @@ class LoginForm extends SpecialPage {
                $u->setNewpassword( $np, $throttle );
                $u->saveSettings();
                $userLanguage = $u->getOption( 'language' );
-               $m = $this->msg( $emailText, $ip, $u->getName(), $np, $wgServer . $wgScript,
+               $m = $this->msg( $emailText, $ip, $u->getName(), $np, '<' . $wgServer . $wgScript . '>',
                        round( $wgNewPasswordExpiry / 86400 ) )->inLanguage( $userLanguage )->text();
                $result = $u->sendMail( $this->msg( $emailTitle )->inLanguage( $userLanguage )->text(), $m );