|
$hCaptchaResponse = $code ?? $input->get('h-captcha-response', '', 'cmd'); |
Since $code is not needed (per method comment), this might be better:
$hCaptchaResponse = $input->get('h-captcha-response', '', 'cmd');
This seems to work when $code is set by third party code but is setup assuming some the "other" captcha plugin and is passed as an empty string (i.e., not null, so $code ?? ... always is the empty $code).
hCaptcha/joomla4/hcaptcha.php
Line 125 in 34ef982
Since
$codeis not needed (per method comment), this might be better:This seems to work when
$codeis set by third party code but is setup assuming some the "other" captcha plugin and is passed as an empty string (i.e., not null, so$code ?? ...always is the empty$code).