Touch thumbnail file before saving to allow safe_mode thumbnailing

This commit is contained in:
Jude Anthony 2006-08-29 11:32:32 +00:00
parent 19821f6cc1
commit 14390399da

View File

@ -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;