diff options
author | alecpl <alec@alec.pl> | 2008-08-11 07:10:22 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-08-11 07:10:22 +0000 |
commit | c86e940c86d64d7b41a23c28d8047f66b43a8847 (patch) | |
tree | bad604661b29ad7a0aaff25e3340ef28cd3e5dba /program/include | |
parent | d8d41658d3fb87c71c3e30825003f827f4ffbdae (diff) |
#1485268
Diffstat (limited to 'program/include')
-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 a57d67118..1d070854a 100644 --- a/program/include/rcube_user.php +++ b/program/include/rcube_user.php @@ -430,7 +430,7 @@ class rcube_user static function email2user($email) { $user = $email; - $r = self::findinvirtual("^$email\s"); + $r = self::findinvirtual('^' . quotemeta($email) . '[[:space:]]'); for ($i=0; $i<count($r); $i++) { @@ -455,8 +455,8 @@ class rcube_user */ static function user2email($user) { - $email = ""; - $r = self::findinvirtual("\s$user\s*$"); + $email = ''; + $r = self::findinvirtual('[[:space:]]' . quotemeta($user) . '[[:space:]]*$'); for ($i=0; $i<count($r); $i++) { |