diff options
author | alecpl <alec@alec.pl> | 2010-08-06 14:59:34 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-08-06 14:59:34 +0000 |
commit | c16fab16412be364b7a7d5059859a219eb9c6f1a (patch) | |
tree | 806f6c774d6a820e61d3e8e44bca41706092bc7c /program/include | |
parent | 532c2504f43ec0d92f186bbe8bc0b64e7c36a976 (diff) |
- Fix strpos() usage (#1486458)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcmail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 5ca25df80..980379075 100644 --- a/program/include/rcmail.php +++ b/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'])) |