[Svn] r3875 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Fri Aug 6 16:59:35 CEST 2010


Author: alec
Date: 2010-08-06 09:59:34 -0500 (Fri, 06 Aug 2010)
New Revision: 3875

Modified:
   trunk/roundcubemail/program/include/rcmail.php
Log:
- Fix strpos() usage (#1486458)


Modified: trunk/roundcubemail/program/include/rcmail.php
===================================================================
--- trunk/roundcubemail/program/include/rcmail.php	2010-08-06 14:39:10 UTC (rev 3874)
+++ trunk/roundcubemail/program/include/rcmail.php	2010-08-06 14:59:34 UTC (rev 3875)
@@ -595,7 +595,7 @@
        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']))

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list