diff options
Diffstat (limited to 'controllers')
| -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 |
