Ensure the captcha answer isn't empty at least

main
Pk11 2 years ago
parent 6d9f29121a
commit e564a89083

@ -96,7 +96,7 @@
$_COOKIE['email'] = $email; $_COOKIE['email'] = $email;
} }
if($captcha != $captcha_answer) { if($captcha != $captcha_answer || empty($captcha_answer)) {
if(!empty($img['tmp_name'])) if(!empty($img['tmp_name']))
@unlink($img['tmp_name']); @unlink($img['tmp_name']);
return 'Invalid CAPTCHA answer, copy the text on the left into the box'; return 'Invalid CAPTCHA answer, copy the text on the left into the box';

Loading…
Cancel
Save