summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-08-01 23:10:41 +0000
committerbwarsaw2000-08-01 23:10:41 +0000
commit1d892a94dfe1f7fb57582c0bff2e9e3b217e85e5 (patch)
tree48ea9e6d991f3e83e58ce1815ac9281af0a20723
parent70a660f7d00f4e162c19dfb89dd1eee848421a0f (diff)
downloadmailman-1d892a94dfe1f7fb57582c0bff2e9e3b217e85e5.tar.gz
mailman-1d892a94dfe1f7fb57582c0bff2e9e3b217e85e5.tar.zst
mailman-1d892a94dfe1f7fb57582c0bff2e9e3b217e85e5.zip
Cleanups to fix relative/absolute script url calculation in response
to SF Bug #110753. Specifically, FormatListinfoOverview(): Use Utils.ScriptURL() instead of GetNestingLevel(), and GetScriptURL() instead of GetRelativeScriptURL().
-rw-r--r--Mailman/Cgi/listinfo.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py
index 023b83fa1..92fa038a8 100644
--- a/Mailman/Cgi/listinfo.py
+++ b/Mailman/Cgi/listinfo.py
@@ -124,9 +124,8 @@ def FormatListinfoOverview(error=None):
% ((error and "right ") or ""))
+
'<p> List administrators, you can visit ',
- Link("%sadmin%s/" % ('../' * Utils.GetNestingLevel(),
- mm_cfg.CGIEXT),
- "the list admin overview page"),
+ Link(Utils.ScriptURL('admin'),
+ 'the list admin overview page'),
" to find the management interface for your list."
"<p>(Send questions or comments to ",
Link("mailto:%s" % mm_cfg.MAILMAN_OWNER,
@@ -143,8 +142,7 @@ def FormatListinfoOverview(error=None):
])
for mlist in advertised:
table.AddRow(
- [Link(mlist.GetRelativeScriptURL('listinfo'),
- Bold(mlist.real_name)),
+ [Link(mlist.GetScriptURL('listinfo'), Bold(mlist.real_name)),
mlist.description or Italic('[no description available]')])
doc.AddItem(table)