From db84eecd1ec65b719f57fc547d0826cbb91381bb Mon Sep 17 00:00:00 2001 From: tokul Date: Sat, 5 Aug 2006 08:22:45 +0000 Subject: [PATCH] username should not be empty git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11470 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/auth.php b/functions/auth.php index 7de4fe94..2f85f7d3 100644 --- a/functions/auth.php +++ b/functions/auth.php @@ -264,7 +264,8 @@ function get_smtp_user(&$user, &$pass) { if ($smtp_auth_mech == 'none') { $user = ''; $pass = ''; - } elseif ( isset($smtp_sitewide_user) && isset($smtp_sitewide_pass) ) { + } elseif ( isset($smtp_sitewide_user) && isset($smtp_sitewide_pass) && + !empty($smtp_sitewide_user)) { $user = $smtp_sitewide_user; $pass = $smtp_sitewide_pass; } else { -- 2.25.1