From 19096f70e59374a7a6ac5e547cb82499a4597b4d Mon Sep 17 00:00:00 2001 From: znix <64723880+znixbtw@users.noreply.github.com> Date: Fri, 14 Jan 2022 19:14:45 +0530 Subject: [PATCH] Fixed XSS Found By @hitisec --- admin/cheat.php | 20 ++++++++++---------- admin/invites.php | 8 ++++---- admin/sub.php | 8 ++++---- admin/users.php | 20 ++++++++++---------- login.php | 2 +- profile.php | 12 ++++++------ register.php | 2 +- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/admin/cheat.php b/admin/cheat.php index 8bbbef1..a9b359e 100644 --- a/admin/cheat.php +++ b/admin/cheat.php @@ -16,21 +16,21 @@ Util::head('Admin Panel'); Util::navbar(); -// if post request +// if post request if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST["cheatStatus"])) { - $admin->setCheatStatus(); + $admin->setCheatStatus(); } if (isset($_POST["cheatMaint"])) { - $admin->setCheatMaint(); + $admin->setCheatMaint(); } if (isset($_POST["cheatVersion"])) { $ver = floatval($_POST['version']); - $admin->setCheatVersion($ver); + $admin->setCheatVersion($ver); } header("location: cheat.php"); @@ -92,29 +92,29 @@