Page MenuHomePhabricator

suffix_URL_with_space_for_MUAs.patch

Authored By
bzimport
Nov 21 2014, 11:31 PM
Size
900 B
Referenced Files
None
Subscribers
None

suffix_URL_with_space_for_MUAs.patch

Index: includes/specials/SpecialUserlogin.php
===================================================================
--- includes/specials/SpecialUserlogin.php (revision 82697)
+++ includes/specials/SpecialUserlogin.php (working copy)
@@ -833,8 +833,12 @@
$u->setNewpassword( $np, $throttle );
$u->saveSettings();
$userLanguage = $u->getOption( 'language' );
+
+ # Generates mail content, URL followed by an hardcoded space to
+ # helps mail user agents parsing the URL followed by a parenthese
+ # (bug 27668).
$m = wfMsgExt( $emailText, array( 'parsemag', 'language' => $userLanguage ), $ip, $u->getName(), $np,
- $wgServer . $wgScript, round( $wgNewPasswordExpiry / 86400 ) );
+ $wgServer . $wgScript . ' ', round( $wgNewPasswordExpiry / 86400 ) );
$result = $u->sendMail( wfMsgExt( $emailTitle, array( 'parsemag', 'language' => $userLanguage ) ), $m );
return $result;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7237
Default Alt Text
suffix_URL_with_space_for_MUAs.patch (900 B)

Event Timeline