mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:10:12 +01:00
AD sip fix
This commit is contained in:
parent
89d1000c9d
commit
697726205a
@ -141,13 +141,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, '@')) { array_push($data, $email); }
|
||||
if(!in_array($email, $data) && strchr($email, '@') && substr($email, 0, 4) != 'sip:') { array_push($data, $email); }
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
$email = strtolower(preg_replace("/^smtp\:/i", "", $a[$mailattr]));
|
||||
if(!in_array($email, $data) && strchr($email, '@')) { array_push($data, $email); }
|
||||
if(!in_array($email, $data) && strchr($email, '@') && substr($email, 0, 4) != 'sip:') { array_push($data, $email); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user