------------------------------------------------------------
revno: 1742
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Sat 2018-02-03 18:00:40 -0800
message:
It's not necessary to replace _ with - in language codes for reCAPTCHA.
modified:
Mailman/Cgi/listinfo.py
--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Cgi/listinfo.py'
--- Mailman/Cgi/listinfo.py 2018-01-30 04:06:24 +0000
+++ Mailman/Cgi/listinfo.py 2018-02-04 02:00:40 +0000
@@ -21,7 +21,6 @@
# No lock needed in this script, because we don't change data.
import os
-import re
import cgi
import time
@@ -246,14 +245,13 @@
replacements['<mm-fullname-box>'] = mlist.FormatBox('fullname', size=30)
# If reCAPTCHA is enabled, display its user interface
if mm_cfg.RECAPTCHA_SITE_KEY:
- rlang = re.sub('_', '-', lang)
replacements['<mm-recaptcha-ui>'] = (
"""<tr><td> </td><td>
<script src="https://www.google.com/recaptcha/api.js?hl=%s">
</script>
<div class="g-recaptcha" data-sitekey="%s"></div>
</td></tr>"""
- % (rlang, mm_cfg.RECAPTCHA_SITE_KEY))
+ % (lang, mm_cfg.RECAPTCHA_SITE_KEY))
else:
replacements['<mm-recaptcha-ui>'] = ''
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org