From 6844489252e6da8c408d0f3608f57510651843ee Mon Sep 17 00:00:00 2001 From: jmunro Date: Sat, 2 Mar 2002 07:41:10 +0000 Subject: [PATCH] based on bug report #497148. Limits alias expansion functions to local addressbook lookups. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2532 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/smtp.php b/functions/smtp.php index 13ffe93b..6bf45276 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -55,7 +55,7 @@ function expandAddrs ($array) { /* don't show errors -- kinda critical that we don't see * them here since the redirect won't work if we do show them */ - $abook = addressbook_init(false); + $abook = addressbook_init(false, true); for ($i=0; $i < count($array); $i++) { $result = $abook->lookup($array[$i]); $ret = ""; @@ -89,7 +89,7 @@ function expandRcptAddrs ($array) { /* don't show errors -- kinda critical that we don't see * them here since the redirect won't work if we do show them */ - $abook = addressbook_init(false); + $abook = addressbook_init(false, true); for ($i=0; $i < count($array); $i++) { $result = $abook->lookup($array[$i]); $ret = ""; -- 2.25.1