From dafecca7e3c3b2adeaa2bfbddc2b0f00d59833a3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 10 Dec 2014 14:25:12 -0800 Subject: [PATCH] Revert "On closer examination, the captcha is accepting more or less arbitrary input." This reverts commit 1681beaab8c0af4504534011ef98401edaa16cec. --- src/Posting/Captcha.v1.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Posting/Captcha.v1.coffee b/src/Posting/Captcha.v1.coffee index 482cc33f0..fa9822543 100644 --- a/src/Posting/Captcha.v1.coffee +++ b/src/Posting/Captcha.v1.coffee @@ -111,9 +111,7 @@ Captcha.v1 = if Conf['Auto-load captcha'] then @reload() else @destroy() # Duplicate one-word captchas. # Don't duplicate street numbers for now (needs testing). - if !response - response = 'al pacino' - else if !/\s|^\d$/.test response + if response and !/\s|^\d$/.test response response = "#{response} #{response}" {challenge, response}