chmod(): images don't need +x lol

This commit is contained in:
Michael Foster 2013-08-19 01:54:14 +10:00
parent ae02ed69b2
commit 740b710dd4

View File

@ -605,7 +605,7 @@ if (isset($_POST['delete'])) {
if (isset($post['file_tmp'])) {
if (!@rename($upload, $post['file']))
error($config['error']['nomove']);
chmod($post['file'], 0755);
chmod($post['file'], 0644);
} elseif (!@move_uploaded_file($upload, $post['file']))
error($config['error']['nomove']);
}