[ mailman-Patches-1156891 ] Utils.ScriptURL use DEFAULT_URL_HOST instead of domain

SourceForge.net noreply at sourceforge.net
Fri Mar 4 20:24:58 CET 2005


Patches item #1156891, was opened at 2005-03-04 19:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1156891&group_id=103

Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin von Gagern (gagern)
Assigned to: Nobody/Anonymous (nobody)
Summary: Utils.ScriptURL use DEFAULT_URL_HOST instead of domain

Initial Comment:
Utils.ScriptURL in Mailman/Utils.py uses get_domain()
instead of mm_cfg.DEFAULT_URL_HOST to generate a URL.

This leads to a buggy link being generated in
Mailman/Cgi/listinfo.py for Utils.ScriptURL('admin'). With
DEFAULT_EMAIL_HOST = 'dom.ain'
DEFAULT_URL_HOST = 'host.dom.ain'
DEFAULT_URL_PATTERN = 'https://%s/listenadmin/'
I get the link "https://dom.ain/listenadmin/admin".

Mailman/MailList.py also uses mm_cfg.DEFAULT_URL_HOST,
so this should be consistent.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1156891&group_id=103


More information about the Mailman-coders mailing list