Merge "(bug 11056) Closing bracket skipped in emailed links"
authorSiebrand <siebrand@wikimedia.org>
Wed, 19 Sep 2012 17:24:37 +0000 (17:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 19 Sep 2012 17:24:37 +0000 (17:24 +0000)
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 );