]> git.mjollnir.org Git - s9y.git/commitdiff
Touch thumbnail file before saving to allow safe_mode thumbnailing
authorslothman <slothman>
Tue, 29 Aug 2006 11:32:32 +0000 (11:32 +0000)
committerslothman <slothman>
Tue, 29 Aug 2006 11:32:32 +0000 (11:32 +0000)
include/functions_images.inc.php

index 23f1a6fc1d05b5eab8405e0a51110e7f70f58a37..221afd5b5ed8973356d440900d063a4db9d897a0 100644 (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;