aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-01-18 23:35:54 +0000
committergweltas <gweltas@piwigo.org>2004-01-18 23:35:54 +0000
commit8d2a8cdadd2e40ac22c3714bcfe411ff79244b9b (patch)
treeab1f0d338a099b28bd6b241507f4ac54d469c273 /upload.php
parent6dbfba37197a1cc149db70fe627c9e1ba64ad67d (diff)
Upload rights
git-svn-id: http://piwigo.org/svn/branches/release-1_3@298 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/upload.php b/upload.php
index 98505961b..647eba7c0 100644
--- a/upload.php
+++ b/upload.php
@@ -94,6 +94,10 @@ function validate_upload( $temp_name, $my_max_file_size,
// destruction de l'image avec le nom temporaire
@unlink( $temp_name );
}
+ else
+ {
+ @chmod( $temp_name, 0644);
+ }
return $result;
}
//----------------------------------------------------------- personnal include