- Fix strpos() usage (#1486458)

release-0.6
alecpl 15 years ago
parent 532c2504f4
commit c16fab1641

@ -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']))

Loading…
Cancel
Save