summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-12 23:06:58 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-12 23:06:58 +1000
commit6a1e8e834bd1d0ea1c0f557ae0c54d8b2ae44d61 (patch)
tree041b80e516028db69a48470243294f8ef0836787 /post.php
parent0de0bc6ceb2c56256bf87724572055297dae76af (diff)
Fix last commit: add chmod() to fix some permissions derping
Diffstat (limited to 'post.php')
-rw-r--r--post.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/post.php b/post.php
index cfec5430..c55b8bc5 100644
--- a/post.php
+++ b/post.php
@@ -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']);
}