Website Summary Files Commits Branches @commit @diff @stats
path: root / controllers / archive.php
diff options
context:
space:
mode:
Commit7ecd46d4ca0644c1e2398afe9e489604d14244cb (patch)
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
Filesc9c5ac051f86cc23fc60dc68f1e4714170a66d9d /controllers/archive.php
nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.tar
nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.tar.gz
nowayforward_human-7ecd46d4ca0644c1e2398afe9e489604d14244cb.zip
Parent304546c7c6014a20aef5fb9af6081132693eff7d (diff)
Fixed the same thing with the js imports
1 files changed, 1 insertions, 4 deletions
-rw-r--r--controllers/archive.php5
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