From e564a89083f3be2f802365d81d7adf62f4cf9acd Mon Sep 17 00:00:00 2001 From: Pk11 Date: Tue, 14 Feb 2023 04:58:19 +0000 Subject: [PATCH] Ensure the captcha answer isn't empty at least --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 8676ee6..97d3fe0 100644 --- a/index.php +++ b/index.php @@ -96,7 +96,7 @@ $_COOKIE['email'] = $email; } - if($captcha != $captcha_answer) { + if($captcha != $captcha_answer || empty($captcha_answer)) { if(!empty($img['tmp_name'])) @unlink($img['tmp_name']); return 'Invalid CAPTCHA answer, copy the text on the left into the box';