diff options
-rw-r--r-- | application/controllers/file.php | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 6ac0bc28c..f6891c4bf 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -610,7 +610,6 @@ class File extends MY_Controller { $file = $this->mfile->file($hash); file_put_contents($file, $content); - chmod($file, 0600); $this->mfile->add_file($hash, $id, $filename); $this->_show_url(array($id), false); } @@ -692,7 +691,6 @@ class File extends MY_Controller { $file_path = $this->mfile->file($hash); move_uploaded_file($file['tmp_name'], $file_path); - chmod($file_path, 0600); $this->mfile->add_file($hash, $id, $filename); $ids[] = $id; } |