From 7ecd46d4ca0644c1e2398afe9e489604d14244cb Mon Sep 17 00:00:00 2001 From: Georgi Nikolov Date: Sun, 26 Jan 2025 15:34:53 +0200 Subject: Fixed the same thing with the js imports --- controllers/archive.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'controllers') diff --git a/controllers/archive.php b/controllers/archive.php index 6beb826..c731a54 100644 --- a/controllers/archive.php +++ b/controllers/archive.php @@ -199,10 +199,7 @@ class DownloadPage { $url = ltrim($url, "./"); $url = rtrim($url, "./"); - // Handle relative URLs - if (parse_url($url, PHP_URL_SCHEME) === null) { - $url = $this->page_url . $url; - } + $url = $this->resolveUrl($url, $this->page_url); if ($this->isResourceAccessible($url)) { // Get the file name and local path -- cgit v1.2.3