aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2012-12-14 20:37:33 -0800
committerMark Sapiro <msapiro@value.net>2012-12-14 20:37:33 -0800
commitfed2c1a29ddfb59b215f5091f02f782d7f944240 (patch)
treef8b756ddf19ae5156ebae31500d4538d1f0efd00 /Mailman/Cgi
parentd90c13daa49cdb3ec1a3c17baf6d0c200bbde5c8 (diff)
downloadmailman2-fed2c1a29ddfb59b215f5091f02f782d7f944240.tar.gz
mailman2-fed2c1a29ddfb59b215f5091f02f782d7f944240.tar.xz
mailman2-fed2c1a29ddfb59b215f5091f02f782d7f944240.zip
Added a minimum delay between retrieval and submission of the subscribe form.
Diffstat (limited to 'Mailman/Cgi')
-rwxr-xr-xMailman/Cgi/subscribe.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py
index 0fde280a..d6b1517d 100755
--- a/Mailman/Cgi/subscribe.py
+++ b/Mailman/Cgi/subscribe.py
@@ -136,6 +136,10 @@ def process_form(mlist, doc, cgidata, lang):
remote).hexdigest()
if now - then > mm_cfg.FORM_LIFETIME:
results.append(_('The form is too old. Please GET it again.'))
+ if now - then < mm_cfg.SUBSCRIBE_FORM_MIN_TIME:
+ results.append(
+ _('Please take a few seconds to fill out the form before submitting it.')
+ )
if token != fhash:
results.append(_('You must GET the form before submitting it.'))
# Was an attempt made to subscribe the list to itself?