From b0dcd8000ec001ffeaa976799e4b4ce3c34874c4 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 2 Nov 2001 23:52:20 +0000 Subject: listinfo_overview(), admin_overview(): Simplify the test for virtual host matching. We simply need to find the lowercased hostname in the web_page_url to find a match. --- Mailman/Cgi/admin.py | 4 +--- Mailman/Cgi/listinfo.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index 2982d5e1d..2e19f3220 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -220,9 +220,7 @@ def admin_overview(msg=''): mlist = MailList.MailList(name, lock=0) if mlist.advertised: if mm_cfg.VIRTUAL_HOST_OVERVIEW and \ - hostname and \ - hostname.find(mlist.web_page_url) == -1 and \ - mlist.web_page_url.find(hostname) == -1: + mlist.web_page_url.find(hostname) == -1: # List is for different identity of this host - skip it. continue else: diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index 5087d23c9..297c33fe4 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -83,9 +83,7 @@ def listinfo_overview(msg=''): mlist = MailList.MailList(name, lock=0) if mlist.advertised: if mm_cfg.VIRTUAL_HOST_OVERVIEW and \ - hostname and \ - hostname.find(mlist.web_page_url) == -1 and \ - mlist.web_page_url.find(hostname) == -1: + mlist.web_page_url.find(hostname) == -1: # List is for different identity of this host - skip it. continue else: -- cgit v1.3.1