mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
chmod(): images don't need +x lol
This commit is contained in:
parent
ae02ed69b2
commit
740b710dd4
2
post.php
2
post.php
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user