From 563d8f6738ab558bc94b6dc4bb403053d284297e Mon Sep 17 00:00:00 2001 From: Floorb <132411956+Neetpone@users.noreply.github.com> Date: Tue, 11 Jul 2023 03:34:28 -0400 Subject: [PATCH] fix: redirect_back duplication --- public/admin/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/admin/index.php b/public/admin/index.php index 05008b1..2c0397c 100644 --- a/public/admin/index.php +++ b/public/admin/index.php @@ -24,6 +24,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (isset($_SESSION['redirect_back'])) { flashSuccess('You have been logged in. Please try your action again.'); header('Location: ' . $_SESSION['redirect_back']); + unset($_SESSION['redirect_back']); } else { header("Location: dashboard.php"); }