From d6207a49ef95aa2c8ca95033a384d39498ca528a Mon Sep 17 00:00:00 2001 From: amit177 <8685831+amit177@users.noreply.github.com> Date: Sat, 2 Sep 2023 14:57:53 +0000 Subject: [PATCH 1/2] Change form post path --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index e62956f..be9b18e 100644 --- a/index.php +++ b/index.php @@ -182,7 +182,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran

Looking Glass

-
+
@@ -286,7 +286,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran outputCard.style.display = 'inherit' - fetch('/backend.php') + fetch('backend.php') .then(async (response) => { // response.body is a ReadableStream const reader = response.body.getReader() From 5850803887df377c7dc12048da55b39d27131bcb Mon Sep 17 00:00:00 2001 From: amit177 <8685831+amit177@users.noreply.github.com> Date: Sat, 2 Sep 2023 14:58:09 +0000 Subject: [PATCH 2/2] Refresh the page instead of redirecting --- bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index fb0ce09..92a2191 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -31,7 +31,7 @@ function exitErrorMessage(string $message): void function exitNormal(): void { - header('Location: /'); + header("Refresh: 0"); exit; }