summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-11-24 05:38:13 +0000
committerklm1998-11-24 05:38:13 +0000
commit15a74c3740b8d119a0e856c46b9d230d3f037bc3 (patch)
tree87da7c22e10b0ad32a133ec4e0f3debb596293b1
parentaa131f569c0394cb9868f989765d5e7013f73b5a (diff)
downloadmailman-15a74c3740b8d119a0e856c46b9d230d3f037bc3.tar.gz
mailman-15a74c3740b8d119a0e856c46b9d230d3f037bc3.tar.zst
mailman-15a74c3740b8d119a0e856c46b9d230d3f037bc3.zip
Fixed bogus error message: had to few parameters to satisfy format
string (now using dict substitution, instead), plus the URL was missing quotes, plus the URL was missing 'mailto:'.
-rw-r--r--Mailman/Cgi/handle_opts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Cgi/handle_opts.py b/Mailman/Cgi/handle_opts.py
index 62eb8099b..6156038d5 100644
--- a/Mailman/Cgi/handle_opts.py
+++ b/Mailman/Cgi/handle_opts.py
@@ -210,9 +210,9 @@ exactly what happened to provoke this error.<p>'''
PrintResults("You gave the wrong password.")
except:
PrintResults('''An unknown error occured. <p>
- Please send mail to <a href=%s>%s</a> explaining
- exactly what happened to provoke this error.<p>'''
- % (mm_cfg.MAILMAN_OWNER))
+ Please send mail to <a href="mailto:%(owner)s">%(owner)s</a>
+ explaining exactly what happened to provoke this error.<p>'''
+ % {'owner': mm_cfg.MAILMAN_OWNER})
list.SetUserOption(user, mm_cfg.DisableDelivery, disable_mail)
list.SetUserOption(user, mm_cfg.DontReceiveOwnPosts, dont_receive)