Skip to content

Non-null code parameter always fails #58

@muddygs

Description

@muddygs

$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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions