From f9be3371646f6649f41f896e3d8717640ce6db61 Mon Sep 17 00:00:00 2001 From: benchea dan <30780133+bnchdan@users.noreply.github.com> Date: Fri, 11 Mar 2022 08:47:00 +0200 Subject: [PATCH] Update maillog.php --- public/maillog.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/public/maillog.php b/public/maillog.php index fcca652b..5e800319 100644 --- a/public/maillog.php +++ b/public/maillog.php @@ -66,18 +66,17 @@ if ($_SERVER['REQUEST_METHOD'] == "GET") { if (!file_exists($file)) { die("The file does not exists") ; } - - header('Content-Description: File Transfer'); - header('Content-Type: application/octet-stream'); - header('Content-Disposition: attachment; filename='.basename($file)); - header('Content-Transfer-Encoding: binary'); - header('Expires: 0'); - header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - header('Pragma: public'); - header('Content-Length: ' . filesize($file)); - ob_clean(); - flush(); - readfile($file); + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename='.basename($file)); + header('Content-Transfer-Encoding: binary'); + header('Expires: 0'); + header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header('Pragma: public'); + header('Content-Length: ' . filesize($file)); + ob_clean(); + flush(); + readfile($file);