From c76a610af7b45dc4ca65d3127be055e9e5e430d3 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 18 Jan 2015 13:48:10 +0100 Subject: [PATCH] Always chmod 0644 to have other processes read the image (e.g. the queue daemon may need to read it for resizing it). Signed-off-by: Roland Haeder --- lib/imagefile.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/imagefile.php b/lib/imagefile.php index 733a4bbc9c..bfbe17fca8 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -345,6 +345,9 @@ class ImageFile throw new Exception(_('Unknown file type')); } + // Always chmod 0644 to have other processes (e.g. queue daemon read it) + @chmod($image_dest, 0644); + imagedestroy($image_src); imagedestroy($image_dest); } -- 2.39.5