Fix issue where shift-click on Quick Reply submit to bypass warning did not use captcha when posting.

This commit is contained in:
ccd0 2020-04-30 23:59:33 -07:00
parent 1f2e25b3a2
commit 9f6b8c2f60

View File

@ -684,7 +684,7 @@ QR =
if g.BOARD.ID is 'r9k' and !post.com?.match(/[a-z-]/i)
err or= 'Original comment required.'
if QR.captcha.isEnabled and !(/\b_ct=/.test(d.cookie) and threadID) and !err
if QR.captcha.isEnabled and !(/\b_ct=/.test(d.cookie) and threadID) and !(err and !force)
captcha = QR.captcha.getOne(!!threadID) or Captcha.cache.request(!!threadID)
unless captcha
err = 'No valid captcha.'