* Ignore case in checking for a changed email address in Special:Preferences.
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 17 Dec 2007 03:01:30 +0000 (03:01 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 17 Dec 2007 03:01:30 +0000 (03:01 +0000)
* Bug reported by MZMcBride.

RELEASE-NOTES
includes/SpecialPreferences.php

index cfa52d9..c7ab11d 100644 (file)
@@ -248,6 +248,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   user-customized ones (like Common.css, Common.js)
 * (bug 12283) Special:Newpages forgets parameters
 * (bug 12031) All namespaces doesn't work in Special:Newpages
+* Email addresses are now not considered case-sensitive in detecting if
+  a user has changed their email address.
 
 == Parser changes in 1.12 ==
 
index 9fecba1..c1cb374 100644 (file)
@@ -306,7 +306,7 @@ class PreferencesForm {
                if( $wgEnableEmail ) {
                        $newadr = $this->mUserEmail;
                        $oldadr = $wgUser->getEmail();
-                       if( ($newadr != '') && ($newadr != $oldadr) ) {
+                       if( ($newadr != '') && (strtolower($newadr) != strtolower($oldadr)) ) {
                                # the user has supplied a new email address on the login page
                                if( $wgUser->isValidEmailAddr( $newadr ) ) {
                                        $wgUser->mEmail = $newadr; # new behaviour: set this new emailaddr from login-page into user database record