From e2f7de6984f94669ec6ff6b2e2801afe928605b5 Mon Sep 17 00:00:00 2001 From: SuperDev Date: Thu, 22 Dec 2022 13:42:57 -0600 Subject: [PATCH] Update download.php --- download.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download.php b/download.php index 7bd0895..cd9cf3f 100644 --- a/download.php +++ b/download.php @@ -32,10 +32,11 @@ $maxsize = max_size; $file = $_GET['file']; $fileURL = base64_decode($file); $filesize = filesize($fileURL); +$baseurl = file_url_destination; // Check if file exists if(!file_exists($fileURL){ -header("Location: " . file_url_destination); +header('Location: ' . $baseurl); } $core = new Core();