diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-12 23:06:58 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-12 23:06:58 +1000 |
| commit | 6a1e8e834bd1d0ea1c0f557ae0c54d8b2ae44d61 (patch) | |
| tree | 041b80e516028db69a48470243294f8ef0836787 /post.php | |
| parent | 0de0bc6ceb2c56256bf87724572055297dae76af (diff) | |
Fix last commit: add chmod() to fix some permissions derping
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -588,6 +588,7 @@ if (isset($_POST['delete'])) { if (isset($post['file_tmp'])) { if (!@rename($upload, $post['file'])) error($config['error']['nomove']); + chmod($post['file'], 0755); } elseif (!@move_uploaded_file($upload, $post['file'])) error($config['error']['nomove']); } |
