From 0b30864498cfa9af2398991188109da991e4613f Mon Sep 17 00:00:00 2001 From: Otto Vainio Date: Wed, 26 Sep 2007 21:04:19 +0200 Subject: media meta chmod fix Media metadata update changes file permissions to default. Should call chmod if needed. darcs-hash:20070926190419-58dfb-8405fd4d62e7dc337d1257ca282ac8c05bbea30f.gz --- inc/media.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inc/media.php') diff --git a/inc/media.php b/inc/media.php index 491dbd8da..c1bee133a 100644 --- a/inc/media.php +++ b/inc/media.php @@ -52,6 +52,7 @@ function media_metasave($id,$auth,$data){ if($auth < AUTH_UPLOAD) return false; if(!checkSecurityToken()) return false; global $lang; + global $conf; $src = mediaFN($id); $meta = new JpegMeta($src); @@ -67,6 +68,7 @@ function media_metasave($id,$auth,$data){ } if($meta->save()){ + if($conf['fperm']) chmod($src, $conf['fperm']); msg($lang['metasaveok'],1); return $id; }else{ -- cgit v1.2.3