Make CAPTCHA work on act=dispBoardContent

This commit is contained in:
Kijin Sung 2022-02-07 20:49:10 +09:00
parent 23f7568e74
commit dba78c46fe

View file

@ -244,7 +244,7 @@ class spamfilterController extends spamfilter
{
if ($config->captcha->target_actions[$action])
{
if (preg_match(self::$_captcha_actions[$action], $obj->act) || ($action === 'comment' && !$obj->act && Context::get('document_srl')))
if (preg_match(self::$_captcha_actions[$action], $obj->act) || ($action === 'comment' && (!$obj->act || $obj->act === 'dispBoardContent') && Context::get('document_srl')))
{
$enable = true;
}