1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

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']);
}