Browse Source

chmod(): images don't need +x lol

pull/40/head
Michael Foster 11 years ago
parent
commit
740b710dd4
  1. 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…
Cancel
Save