diff options
| author | bwarsaw | 2002-04-05 05:37:34 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-04-05 05:37:34 +0000 |
| commit | f562dac1f5db5720ce06dcf3f228972ba4e67696 (patch) | |
| tree | b5bbd4b8ad25b23b266a83b42470585315308800 | |
| parent | 0d17f935c592cab20364d64637bc00a325973507 (diff) | |
| download | mailman-f562dac1f5db5720ce06dcf3f228972ba4e67696.tar.gz mailman-f562dac1f5db5720ce06dcf3f228972ba4e67696.tar.zst mailman-f562dac1f5db5720ce06dcf3f228972ba4e67696.zip | |
process_request(): When trying to find the mapping from url-host to
email host name, if there is no mapping in the VIRTUAL_HOSTS table,
use DEFAULT_EMAIL_HOST instead of the url-host. Closes SF bug #530949.
| -rw-r--r-- | Mailman/Cgi/create.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 5fcdbf951..736590974 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -196,7 +196,8 @@ def process_request(doc, cgidata): hostname = Utils.get_domain() mlist.default_member_moderation = moderate mlist.web_page_url = mm_cfg.DEFAULT_URL_PATTERN % hostname - mlist.host_name = mm_cfg.VIRTUAL_HOSTS.get(hostname, hostname) + mlist.host_name = mm_cfg.VIRTUAL_HOSTS.get( + hostname, mm_cfg.DEFAULT_EMAIL_HOST) mlist.Save() finally: # Now be sure to unlock the list. It's okay if we get a signal here |
