From d9b3efcbb113d2f6e3d486aeb24694b2829151eb Mon Sep 17 00:00:00 2001 From: mailman Date: Tue, 31 Mar 1998 04:51:26 +0000 Subject: Whoops - realized that a null regexp (from stripping the empty string) would make .HasExplicitDest() return true for every list with an empty acceptable_aliases - fixed. --- modules/maillist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/maillist.py b/modules/maillist.py index bdaa1c6ce..4cd51bdee 100644 --- a/modules/maillist.py +++ b/modules/maillist.py @@ -483,7 +483,8 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, # ... and only then try the regexp acceptable aliases. for recip in recips: for alias in string.split(self.acceptable_aliases, '\n'): - if re.match(string.strip(alias), recip): + stripped = string.strip(alias) + if stripped and re.match(stripped, recip): return 1 return 0 -- cgit v1.3.1