aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaude <longneck@scratchbook.ch>2019-11-24 16:14:27 +0100
committerClaude <longneck@scratchbook.ch>2019-11-24 16:14:27 +0100
commitfe75336691a9aec57ca49ee85f35f557b021de31 (patch)
treeef4c597a4228f2dc436d535d36ac7d23819867ec
parent8a5e55cec862fb6221ce27f38e20044a598a73a0 (diff)
downloadstikked-fit-fe75336691a9aec57ca49ee85f35f557b021de31.tar.gz
stikked-fit-fe75336691a9aec57ca49ee85f35f557b021de31.tar.bz2
stikked-fit-fe75336691a9aec57ca49ee85f35f557b021de31.zip
Fix a critical bug that allows pasting despite captcha
-rw-r--r--htdocs/application/controllers/Main.php2
1 files changed, 1 insertions, 1 deletions
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 {

© 2014-2024 Faster IT GmbH | imprint | privacy policy