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. --- Mailman/MailList.py | 3 ++- modules/maillist.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Mailman/MailList.py b/Mailman/MailList.py index bdaa1c6ce..4cd51bdee 100644 --- a/Mailman/MailList.py +++ b/Mailman/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 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