Captcha bypass cookie does not work for starting threads. Updating to treat this case correctly.

This commit is contained in:
ccd0 2018-01-31 20:28:51 -08:00
parent 601792f2c6
commit f1e580e1e1
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ Captcha.cache =
needed: ->
not (
/\b_ct=/.test(d.cookie) or @captchas.length or QR.req
(/\b_ct=/.test(d.cookie) and QR.posts[0].thread isnt 'new') or @captchas.length or QR.req
) and (
QR.posts.length > 1 or Conf['Auto-load captcha'] or QR.posts[0].com or QR.posts[0].file
)

View File

@ -664,7 +664,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 !err
if QR.captcha.isEnabled and !(/\b_ct=/.test(d.cookie) and threadID) and !err
captcha = QR.captcha.getOne(!!threadID)
unless captcha
err = 'No valid captcha.'