summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-08-11 07:10:22 +0000
committeralecpl <alec@alec.pl>2008-08-11 07:10:22 +0000
commitc86e940c86d64d7b41a23c28d8047f66b43a8847 (patch)
treebad604661b29ad7a0aaff25e3340ef28cd3e5dba /program
parentd8d41658d3fb87c71c3e30825003f827f4ffbdae (diff)
#1485268
Diffstat (limited to 'program')
-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++)
{