1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

post.php: fix hcaptcha reading wrong post field

This commit is contained in:
Zankaria 2024-04-16 22:39:32 +02:00
parent 73f2e3222b
commit b86b9e375d

View File

@ -623,7 +623,7 @@ if (isset($_POST['delete'])) {
if (!isset($_POST['h-captcha-response'])) {
error($config['error']['bot']);
}
$response = $_POST['g-recaptcha-response'];
$response = $_POST['h-captcha-response'];
$query = RemoteCaptchaQuery::withHCaptcha($context->getHttpDriver(), $config['hcaptcha_private']);
}