From 956ae30bdec76890dab7f461a376115aca7b11ad Mon Sep 17 00:00:00 2001 From: dqos <8611981+dqos@users.noreply.github.com> Date: Thu, 14 Apr 2022 12:12:24 +0200 Subject: [PATCH] Fix small bug when refreshing your page after execution. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index c75b4cd..d998da2 100644 --- a/index.php +++ b/index.php @@ -24,7 +24,7 @@ $detectIpAddress = LookingGlass::detectIpAddress(); if (!empty($_POST)) { do { - if (!isset($_POST['csrfToken']) || ($_POST['csrfToken'] != $_SESSION['CSRF'])) { + if (!isset($_POST['csrfToken']) || !isset($_SESSION['CSRF']) || ($_POST['csrfToken'] != $_SESSION['CSRF'])) { $errorMessage = 'Missing or incorrect CSRF token.'; break; }