From 741806388875c6c8fe047a02b6672b99e94db621 Mon Sep 17 00:00:00 2001 From: Junior Date: Sun, 8 Nov 2026 15:08:19 -0500 Subject: [PATCH] Fix built full path to comic with missing path separator --- ajax/setpath.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ajax/setpath.php b/ajax/setpath.php index d1eccf0..b0d8820 100644 --- a/ajax/setpath.php +++ b/ajax/setpath.php @@ -21,7 +21,9 @@ if ( !$validated ) { $newpath = urldecode($_REQUEST['path']); -$comicfull = realpath(COMICSDIR . $newpath); +$data["newreq"] = $newpath; +$comicfull = realpath(COMICSDIR . "/" . $newpath); +$data["comicfull"] = $comicfull; if ( ($newpath == "/") || ($comicfull === false) || (substr($comicfull, 0, strlen(COMICSDIR)) != COMICSDIR) ) { $_SESSION['compath'] = "/"; } else {