aboutsummaryrefslogtreecommitdiffstats
path: root/upload.php
diff options
context:
space:
mode:
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