diff options
| author | Georgi Nikolov <ggeorgi60@gmail.com> | 2025-01-26 15:34:53 +0200 |
|---|---|---|
| committer | Georgi Nikolov <ggeorgi60@gmail.com> | 2025-01-26 15:34:53 +0200 |
| commit | 7ecd46d4ca0644c1e2398afe9e489604d14244cb (patch) | |
| tree | c9c5ac051f86cc23fc60dc68f1e4714170a66d9d | |
| parent | 304546c7c6014a20aef5fb9af6081132693eff7d (diff) | |
| download | nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.tar nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.tar.gz nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.zip | |
Fixed the same thing with the js imports
| -rw-r--r-- | controllers/archive.php | 5 |
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 |
