From 225bcff21b7f806be17c427c513b82d75410459c Mon Sep 17 00:00:00 2001 From: "Evan G." Date: Fri, 26 Apr 2024 16:56:30 -0500 Subject: [PATCH] Fix redirect --- guestbook/submit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guestbook/submit.php b/guestbook/submit.php index 5f6ffe4..b2c8893 100644 --- a/guestbook/submit.php +++ b/guestbook/submit.php @@ -30,7 +30,7 @@ $nlength = $ndata->nlength; # Setup JSON -$newURL = "http://192.168.1.180:9890/guestbook/index.html"; +$newURL = "https://" . $_SERVER['SERVER_NAME'] . "/guestbook/index.html"; # Check name and message if ($name == "") {