diff options
author | Ralf Jung <post@ralfj.de> | 2019-06-10 22:06:47 +0200 |
---|---|---|
committer | Ralf Jung <post@ralfj.de> | 2019-06-10 22:06:47 +0200 |
commit | 91203be694e4ca836b862b7921e119b2f55a8307 (patch) | |
tree | 1005236747364fc7114cbec2d95f77abd8a6b7b5 /Mailman/Cgi | |
parent | 496e59f4cc7b4db11a26bfc6ad70bc395f1ffce6 (diff) | |
download | mailman2-91203be694e4ca836b862b7921e119b2f55a8307.tar.gz mailman2-91203be694e4ca836b862b7921e119b2f55a8307.tar.xz mailman2-91203be694e4ca836b862b7921e119b2f55a8307.zip |
Don't enable CAPTCHA if 'en' key is not set
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r-- | Mailman/Cgi/listinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py index 6872613e..b35b8988 100644 --- a/Mailman/Cgi/listinfo.py +++ b/Mailman/Cgi/listinfo.py @@ -217,7 +217,7 @@ def list_listinfo(mlist, lang): # for our hash so it doesn't matter. remote = remote.rsplit(':', 1)[0] # render CAPTCHA, if configured - if isinstance(mm_cfg.CAPTCHAS, dict): + if isinstance(mm_cfg.CAPTCHAS, dict) and 'en' in mm_cfg.CAPTCHAS: (captcha_question, captcha_box, captcha_idx) = \ Utils.captcha_display(mlist, lang, mm_cfg.CAPTCHAS) pre_question = _( |