diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-11 07:10:22 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-11 07:10:22 +0000 |
| commit | a445cebdf94fcedf6f4b2b2fbb9d537d83a98b12 (patch) | |
| tree | 618be6402d9e6726607cd9f5d8ee6135892b7559 /roundcubemail/program | |
| parent | cdb1d39e62ad221298f2351d7a6ea4cb7271fceb (diff) | |
#1485268
git-svn-id: https://svn.roundcube.net/trunk@1638 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/rcube_user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_user.php b/roundcubemail/program/include/rcube_user.php index a57d67118..1d070854a 100644 --- a/roundcubemail/program/include/rcube_user.php +++ b/roundcubemail/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++) { |
