From 3f4d53244b7337d87284f1623429a27eae278756 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 5 Dec 2013 22:41:13 +0100 Subject: [PATCH] MS AD fix for the gui --- webui/model/user/auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/model/user/auth.php b/webui/model/user/auth.php index aba8dddc..7417b33d 100644 --- a/webui/model/user/auth.php +++ b/webui/model/user/auth.php @@ -176,13 +176,13 @@ class ModelUserAuth extends Model { for($i = 0; $i < $a[$mailattr]['count']; $i++) { if(preg_match("/^smtp\:/i", $a[$mailattr][$i]) || strchr($a[$mailattr][$i], '@') ) { $email = strtolower(preg_replace("/^smtp\:/i", "", $a[$mailattr][$i])); - if(!in_array($email, $data) && strchr($email, '@') && substr($email, 0, 4) != 'sip:') { array_push($data, $email); } + if(!in_array($email, $data) && strchr($email, '@') && substr($email, 0, 4) != 'sip:' && substr($email, 0, 4) != 'eum:') { array_push($data, $email); } } } } else { $email = strtolower(preg_replace("/^smtp\:/i", "", $a[$mailattr])); - if(!in_array($email, $data) && strchr($email, '@') && substr($email, 0, 4) != 'sip:') { array_push($data, $email); } + if(!in_array($email, $data) && strchr($email, '@') && substr($email, 0, 4) != 'sip:' && substr($email, 0, 4) != 'eum:') { array_push($data, $email); } } } }