From 688fb64b6ac3e66349536687807ae358fd91b5b0 Mon Sep 17 00:00:00 2001 From: SuperDev Date: Thu, 22 Dec 2022 13:37:33 -0600 Subject: [PATCH] Update download.php --- download.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/download.php b/download.php index 9a4cb34..7bd0895 100644 --- a/download.php +++ b/download.php @@ -33,6 +33,10 @@ $file = $_GET['file']; $fileURL = base64_decode($file); $filesize = filesize($fileURL); +// Check if file exists +if(!file_exists($fileURL){ +header("Location: " . file_url_destination); +} $core = new Core(); ?>