partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8732037ad511c6445b062e5d3f76208ab010cc36
parent 892023475a34a4d2a70c17f2cead12b8f2669950
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue, 24 Apr 2012 05:49:30 +0200

Fixed "undefined index" when displaying files

Diffstat:
Msrc/frontend/file.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/file.php b/src/frontend/file.php @@ -55,7 +55,7 @@ if ($file == null) { if (is_object($file)) { header("Content-Type: ".$file->getMimeType()); - if ($_REQUEST["download"] && $_REQUEST["download"] == "true") { + if (array_key_exists("download", $_REQUEST) && $_REQUEST["download"] == "true") { header("Content-Description: File Transfer"); header('Content-Disposition: attachment; filename="'.basename($file->getOriginalFilename()).'"'); } else {