[Mailman-Users] Relative Admin URLs
mark at msapiro.net
Thu Jan 1 23:56:45 CET 2009
Dennis Putnam wrote:
>Thanks. I added the patch but is there a config parameter I need to set
>to make it work? If not I cannot see any difference.
What are you looking at? You have to look at the raw HTML (page source)
delivered to the browser to see a difference.
In practical terms, there's not going to be a difference in the HTTP
interaction between the browser and the server.
>Mark Sapiro wrote:
>> It's a bug. It has not been fixed to date, but it will be for the next
>> release. The following patch will fix it.
>> === modified file 'Mailman/Utils.py'
>> --- Mailman/Utils.py 2008-12-05 23:08:41 +0000
>> +++ Mailman/Utils.py 2008-12-30 00:23:28 +0000
>> @@ -266,7 +266,7 @@
>> fullpath =3D os.environ.get('SCRIPT_NAME', '') + \
>> os.environ.get('PATH_INFO', '')
>> baseurl =3D urlparse.urlparse(web_page_url)
>> - if not absolute and fullpath.endswith(baseurl):
>> + if not absolute and fullpath.startswith(baseurl):
>> # Use relative addressing
>> fullpath =3D fullpath[len(baseurl):]
>> i =3D fullpath.find('?')
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users