[debian-edu-commits] debian-edu/upstream/ 01/01: Don't lower-case mail addresses. The user should be allowed to stored mingled-cased mail addresses in the LDAP address book.

Mike Gabriel sunweaver at debian.org
Wed Sep 16 13:20:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository gosa-plugin-mailaddress.

commit 4d1fbdeec9196a4b1c31c726ed06ea0a83efdbe5
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Sep 16 15:19:54 2015 +0200

    Don't lower-case mail addresses. The user should be allowed to stored mingled-cased mail addresses in the LDAP address book.
---
 personal/mailaddress/class_mailAccount.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/personal/mailaddress/class_mailAccount.inc b/personal/mailaddress/class_mailAccount.inc
index 11d22a7..398b1de 100644
--- a/personal/mailaddress/class_mailAccount.inc
+++ b/personal/mailaddress/class_mailAccount.inc
@@ -218,7 +218,7 @@ class mailAccount extends plugin {
         $ldap=$this->config->get_ldap_link ();
 
         if ($this->initially_was_account) {
-            $this->mail=trim (strtolower ($this->mail));
+            $this->mail=trim($this->mail);
         }
 
         /* Call parents save to prepare $this->attrs */
@@ -317,7 +317,7 @@ class mailAccount extends plugin {
     function adapt_from_template ($dn,$skip=array ()) {
         plugin::adapt_from_template ($dn,$skip);
 
-        $this->mail=strtolower (rewrite ($this->mail));
+        $this->mail=rewrite ($this->mail);
 
         // Remove non ASCII charcters
         $this->mail=iconv ('UTF-8','US-ASCII//TRANSLIT',$this->mail);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/upstream/gosa-plugin-mailaddress.git



More information about the debian-edu-commits mailing list