summaryrefslogtreecommitdiff
path: root/program/include/rcube_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_user.php')
-rw-r--r--program/include/rcube_user.php6
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++)
{