aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorGeorgi Nikolov <ggeorgi60@gmail.com>2025-01-26 15:34:53 +0200
committerGeorgi Nikolov <ggeorgi60@gmail.com>2025-01-26 15:34:53 +0200
commit7ecd46d4ca0644c1e2398afe9e489604d14244cb (patch)
treec9c5ac051f86cc23fc60dc68f1e4714170a66d9d /controllers
parent304546c7c6014a20aef5fb9af6081132693eff7d (diff)
downloadnowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.tar
nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.tar.gz
nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.zip
Fixed the same thing with the js imports
Diffstat (limited to 'controllers')
-rw-r--r--controllers/archive.php5
1 files changed, 1 insertions, 4 deletions
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