From: Roland Haeder Date: Sun, 18 Jan 2015 12:48:10 +0000 (+0100) Subject: Always chmod 0644 to have other processes read the image (e.g. the queue daemon may... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c76a610af7b45dc4ca65d3127be055e9e5e430d3;p=quix0rs-gnu-social.git 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 --- 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); }