]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Always chmod 0644 to have other processes read the image (e.g. the queue daemon may...
authorRoland Haeder <roland@mxchange.org>
Sun, 18 Jan 2015 12:48:10 +0000 (13:48 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 18 Jan 2015 12:48:30 +0000 (13:48 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
lib/imagefile.php

index 733a4bbc9c0d456d61350a6cd4671315f7758f6d..bfbe17fca8c28682cc91772ca2eb72757beb2330 100644 (file)
@@ -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);
     }