Don't open captcha when the only text so far is a quote link or quoted text. #2421

This commit is contained in:
ccd0 2019-09-05 14:30:18 -07:00
parent 626e37acac
commit 95c66ee153

View File

@ -14,7 +14,7 @@ Captcha.cache =
not (
@haveCookie() 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
QR.posts.length > 1 or Conf['Auto-load captcha'] or /^\s*[^\s>]/m.test(QR.posts[0].com or '') or QR.posts[0].file
) and (
@submitCB or $.event('LoadCaptcha')
)