mirror of
https://github.com/hnhx/librebin.git
synced 2025-01-09 11:07:26 -03:00
fixed captcha security issue
This commit is contained in:
parent
cb40eb8178
commit
17d32c0f93
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
|||
$valid_upload = true;
|
||||
$content = htmlspecialchars(trim($_REQUEST["content"]));
|
||||
|
||||
if ($_SESSION["captcha"] != strtoupper($_REQUEST["captcha"]))
|
||||
if (empty($_SESSION["captcha"]) || $_SESSION["captcha"] != strtoupper($_REQUEST["captcha"]))
|
||||
{
|
||||
|
||||
if (!in_array($_REQUEST["api_key"], $api_keys))
|
||||
|
|
Loading…
Reference in a new issue