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(); ?>