diff options
Diffstat (limited to 'Mailman/Cgi/listinfo.py')
-rw-r--r-- | Mailman/Cgi/listinfo.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index b35b8988..81ff7f48 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -221,18 +221,21 @@ def list_listinfo(mlist, lang): (captcha_question, captcha_box, captcha_idx) = \ Utils.captcha_display(mlist, lang, mm_cfg.CAPTCHAS) pre_question = _( - '''Please answer the following question to prove that - you are not a bot:''' + """Please answer the following question to prove that + you are not a bot:""" ) replacements['<mm-captcha-ui>'] = ( """<tr><td BGCOLOR="#dddddd">%s<br>%s</td><td>%s</td></tr>""" % (pre_question, captcha_question, captcha_box)) else: - captcha_idx = "" # just to have something to include in the hash below + # just to have something to include in the hash below + captcha_idx = '' # fill form replacements['<mm-subscribe-form-start>'] += ( - '<input type="hidden" name="sub_form_token" value="%s:%s:%s">\n' - % (now, captcha_idx, Utils.sha_new(mm_cfg.SUBSCRIBE_FORM_SECRET + ":" + + '<input type="hidden" name="sub_form_token"' + ' value="%s:%s:%s">\n' + % (now, captcha_idx, + Utils.sha_new(mm_cfg.SUBSCRIBE_FORM_SECRET + ":" + now + ":" + captcha_idx + ":" + mlist.internal_name() + ":" + |