Touch thumbnail file before saving to allow safe_mode thumbnailing
This commit is contained in:
parent
19821f6cc1
commit
14390399da
@ -1244,6 +1244,7 @@ function serendipity_resize_image_gd($infilename, $outfilename, $newwidth, $newh
|
|||||||
|
|
||||||
imagecopyresampled($out, $in, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
|
imagecopyresampled($out, $in, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
|
||||||
@umask(0000);
|
@umask(0000);
|
||||||
|
touch($outfilename); // safe_mode requirement
|
||||||
$func['save']($out, $outfilename, $func['qual']);
|
$func['save']($out, $outfilename, $func['qual']);
|
||||||
@chmod($outfilename, 0664);
|
@chmod($outfilename, 0664);
|
||||||
$out = null;
|
$out = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user