From af66851b8b460291db685f870377554a38f65c16 Mon Sep 17 00:00:00 2001 From: System Void Date: Sun, 26 Jun 2016 16:14:47 +0100 Subject: [PATCH] Moving this to v-open-fs-file --- web/download/file/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/download/file/index.php b/web/download/file/index.php index b0a462f4..0cc5b5c1 100644 --- a/web/download/file/index.php +++ b/web/download/file/index.php @@ -12,7 +12,7 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) { } $path = $_REQUEST['path']; -if (!empty($path) && file_exists($path)) { +if (!empty($path)) { header("Content-type: application/octet-stream"); header("Content-Transfer-Encoding: binary"); header("Content-disposition: attachment;filename=".basename($path));