summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-19 01:54:14 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-19 01:54:14 +1000
commit740b710dd445b8ce988825fb649a3e03704833e5 (patch)
tree4d64b5f89c308a383f314ed6628a91f125a75f8c
parentae02ed69b2fccc08aab6dbfbcae8c867c4617bce (diff)
chmod(): images don't need +x lol
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index d5e1c500..02d97e24 100644
--- a/post.php
+++ b/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']);
}