From 79cd56254361bc67a559680984c3f75c2843cb18 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 17 Dec 2007 23:40:30 +0000 Subject: [PATCH] Revert r28576 (by me). Violates the RfC spec on email (mailbox local-part is case-sensitive according to RfC2821) --- RELEASE-NOTES | 2 -- includes/SpecialPreferences.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c7ab11dcc8..cfa52d9ba3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -248,8 +248,6 @@ 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 c1cb3740eb..9fecba1082 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 != '') && (strtolower($newadr) != strtolower($oldadr)) ) { + if( ($newadr != '') && ($newadr != $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 -- 2.20.1