diff options
author | thomascube <thomas@roundcube.net> | 2008-03-21 13:58:24 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-03-21 13:58:24 +0000 |
commit | 846dd743c83e69485602054b2a9687deaf26a672 (patch) | |
tree | 65ac83f65cd7c907b6ae2a68b12b25a35a4de72e /program/include/rcube_user.inc | |
parent | 0c6f4b88648879cf12342d16c83bdd0d3a11672f (diff) |
Strip slashes from virtuser email values (#1484700)
Diffstat (limited to 'program/include/rcube_user.inc')
-rw-r--r-- | program/include/rcube_user.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_user.inc b/program/include/rcube_user.inc index 41b424f1d..e748758a9 100644 --- a/program/include/rcube_user.inc +++ b/program/include/rcube_user.inc @@ -361,7 +361,7 @@ class rcube_user // try to resolve user in virtusertable if (!empty($CONFIG['virtuser_file']) && !strpos($user, '@')) - $user_email = self::user2email($user); + $user_email = rcube_user::user2email($user); $DB->query( "INSERT INTO ".get_table_name('users')." @@ -468,7 +468,7 @@ class rcube_user $arr = preg_split('/\s+/', $data); if (count($arr) > 0) { - $email = trim($arr[0]); + $email = trim(str_replace('\\@', '@', $arr[0])); break; } } |