From fe75336691a9aec57ca49ee85f35f557b021de31 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 Nov 2019 16:14:27 +0100 Subject: Fix a critical bug that allows pasting despite captcha --- htdocs/application/controllers/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/application/controllers/Main.php b/htdocs/application/controllers/Main.php index 6364430..f956b30 100644 --- a/htdocs/application/controllers/Main.php +++ b/htdocs/application/controllers/Main.php @@ -669,7 +669,7 @@ class Main extends CI_Controller } } else { - if (strtolower($text) == strtolower($this->session->userdata('captcha'))) { + if ($text && strtolower($text) == strtolower($this->session->userdata('captcha'))) { $this->session->set_userdata('is_human', true); return true; } else { -- cgit v1.2.3