diff options
author | alecpl <alec@alec.pl> | 2008-07-21 08:30:01 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-07-21 08:30:01 +0000 |
commit | e2003306d3b4010fb9772f79dc490805848c7a8c (patch) | |
tree | 56ca5861467768d0127d2abe956a87e4617aa40c /program | |
parent | 6c26fb42aa8e22749b5317855e8a75a79cb2c7c4 (diff) |
#1485207
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php index 5f970ec6a..e4152e65e 100644 --- a/program/include/rcube_user.php +++ b/program/include/rcube_user.php @@ -420,11 +420,11 @@ class rcube_user static function email2user($email) { $user = $email; - $r = self::findinvirtual("^$email"); + $r = self::findinvirtual("^$email\s"); for ($i=0; $i<count($r); $i++) { - $data = $r[$i]; + $data = trim($r[$i]); $arr = preg_split('/\s+/', $data); if (count($arr) > 0) { @@ -446,7 +446,7 @@ class rcube_user static function user2email($user) { $email = ""; - $r = self::findinvirtual("$user$"); + $r = self::findinvirtual("\s$user\s*$"); for ($i=0; $i<count($r); $i++) { |