From 64127fe3c2b9843c9760218e59dae9731cc56bdf Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 20 Apr 2020 23:07:51 +0200 Subject: [PATCH] Don't allow to view images inline if opened directly. This services is supposed to process and view images inside a web page. --- services/images/view.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/images/view.php b/services/images/view.php index bc7da5343..f5b0cb252 100644 --- a/services/images/view.php +++ b/services/images/view.php @@ -84,6 +84,7 @@ /* Check if no editing action required and send the image to browser. */ if (empty($action)) { + header('Content-Disposition: attachment'); $image->display(); exit; } @@ -132,4 +133,5 @@ /* Write out any changes to the temporary file. */ file_put_contents($file_name, $image->raw()); +header('Content-Disposition: attachment'); $image->display();