diff --git a/include/functions_images.inc.php b/include/functions_images.inc.php index 23f1a6fc..221afd5b 100644 --- a/include/functions_images.inc.php +++ b/include/functions_images.inc.php @@ -1244,6 +1244,7 @@ function serendipity_resize_image_gd($infilename, $outfilename, $newwidth, $newh imagecopyresampled($out, $in, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); @umask(0000); + touch($outfilename); // safe_mode requirement $func['save']($out, $outfilename, $func['qual']); @chmod($outfilename, 0664); $out = null;