From 22ea6a1be14e2859a0e36c441bc7affe07db15b8 Mon Sep 17 00:00:00 2001 From: Junior Date: Fri, 18 Aug 2023 13:37:00 -0400 Subject: [PATCH] Reset compath to / if it's empty --- header.php | 1 + 1 file changed, 1 insertion(+) diff --git a/header.php b/header.php index a927e99..f990546 100644 --- a/header.php +++ b/header.php @@ -24,6 +24,7 @@ if ( !isset($_SESSION['validated']) ) { if ( !isset($_SESSION['compath']) ) { $_SESSION['compath'] = '/'; } +if ( $_SESSION['compath'] == "" ) $_SESSION['compath'] = "/"; // This session variable is set to the current comic in Base64 if ( !isset($_SESSION['comfile']) ) {