mirror of
https://github.com/hnhx/librebin.git
synced 2025-02-02 14:07:08 -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;
|
$valid_upload = true;
|
||||||
$content = htmlspecialchars(trim($_REQUEST["content"]));
|
$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))
|
if (!in_array($_REQUEST["api_key"], $api_keys))
|
||||||
|
|
Loading…
Add table
Reference in a new issue