summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-06 14:59:34 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-08-06 14:59:34 +0000
commit86d5d6f243010c7f9248468f524ee808914d90a2 (patch)
tree8694b10e46a8027f15526af7dfbfc0c1ab3f124a /roundcubemail/program/include
parent40cf6c3a8692eadcc69821bf32ae79dd46f36133 (diff)
- Fix strpos() usage (#1486458)
git-svn-id: https://svn.roundcube.net/trunk@3875 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcmail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php
index 5ca25df80..980379075 100644
--- a/roundcubemail/program/include/rcmail.php
+++ b/roundcubemail/program/include/rcmail.php
@@ -595,7 +595,7 @@ class rcmail
Inspired by Marco <P0L0_notspam_binware.org>
*/
// Check if we need to add domain
- if (!empty($config['username_domain']) && !strpos($username, '@')) {
+ if (!empty($config['username_domain']) && strpos($username, '@') === false) {
if (is_array($config['username_domain']) && isset($config['username_domain'][$host]))
$username .= '@'.rcube_parse_host($config['username_domain'][$host]);
else if (is_string($config['username_domain']))