Fix a critical bug that allows pasting despite captcha

This commit is contained in:
Claude 2019-11-24 16:14:27 +01:00
parent 8a5e55cec8
commit fe75336691

View File

@ -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 {