chmod(): images don't need +x lol
This commit is contained in:
parent
ae02ed69b2
commit
740b710dd4
2
post.php
2
post.php
|
@ -605,7 +605,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);
|
chmod($post['file'], 0644);
|
||||||
} 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