From d1ee60f610d6208a6acba1548bd18de774c7de79 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Fri, 13 Mar 2015 18:15:15 +0100 Subject: [PATCH] Fixes #21 repair file downloading in admin interface Thanks to @tbleiker who found the bug :) --- admin.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/admin.php b/admin.php index 837686e..cad427c 100644 --- a/admin.php +++ b/admin.php @@ -123,12 +123,12 @@ if (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) /* Remove errors. */ @error_reporting(0); -/* Admin interface. */ -require (JIRAFEAU_ROOT . 'lib/template/header.php'); -?>

@@ -277,6 +277,7 @@ if (isset ($_POST['action'])) $l['file_name'] . '"'); if (file_exists(VAR_FILES . $p . $l['md5'])) readfile (VAR_FILES . $p . $l['md5']); + exit; } } -- 2.34.1