mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
Fix last commit: add chmod() to fix some permissions derping
This commit is contained in:
parent
0de0bc6ceb
commit
6a1e8e834b
1
post.php
1
post.php
@ -588,6 +588,7 @@ if (isset($_POST['delete'])) {
|
|||||||
if (isset($post['file_tmp'])) {
|
if (isset($post['file_tmp'])) {
|
||||||
if (!@rename($upload, $post['file']))
|
if (!@rename($upload, $post['file']))
|
||||||
error($config['error']['nomove']);
|
error($config['error']['nomove']);
|
||||||
|
chmod($post['file'], 0755);
|
||||||
} elseif (!@move_uploaded_file($upload, $post['file']))
|
} elseif (!@move_uploaded_file($upload, $post['file']))
|
||||||
error($config['error']['nomove']);
|
error($config['error']['nomove']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user