From: Andrew Garrett Date: Mon, 17 Dec 2007 03:01:30 +0000 (+0000) Subject: * Ignore case in checking for a changed email address in Special:Preferences. X-Git-Tag: 1.31.0-rc.0~50383 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=ec2bcebd09ba4e0b9a2b6bfd370d1e11c8c03187;p=lhc%2Fweb%2Fwiklou.git * Ignore case in checking for a changed email address in Special:Preferences. * Bug reported by MZMcBride. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cfa52d9ba3..c7ab11dcc8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 9fecba1082..c1cb3740eb 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -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