diff --git a/.server-files/get-image.php b/.server-files/get-image.php index 02c46e2b..a9e3e0e9 100644 --- a/.server-files/get-image.php +++ b/.server-files/get-image.php @@ -101,8 +101,13 @@ if (empty($last_image)) else { # send image - header("Content-Type: application/octet-stream"); - header("Content-Disposition: attachment; filename=\"$last_image\""); + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename="' . basename($last_image) . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate'); + header('Pragma: public'); + header('Content-Length: ' . filesize($last_image)); readfile($last_image); } ?> \ No newline at end of file diff --git a/.server-files/get-kernel.php b/.server-files/get-kernel.php index 92512811..fd39f6b1 100644 --- a/.server-files/get-kernel.php +++ b/.server-files/get-kernel.php @@ -52,8 +52,13 @@ if (!file_exists($kernel)) else { # send kernel - header("Content-Type: application/octet-stream"); - header("Content-Disposition: attachment; filename=\"$kernel\""); + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); + header('Content-Disposition: attachment; filename="' . basename($kernel) . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate'); + header('Pragma: public'); + header('Content-Length: ' . filesize($kernel)); readfile($kernel); } ?> \ No newline at end of file