Fixed file permissions mask in file_yard
This commit is contained in:
parent
50b2cbd693
commit
44d09c45f8
|
@ -17,7 +17,7 @@ class FileYard
|
||||||
if io.kind_of?(Tempfile)
|
if io.kind_of?(Tempfile)
|
||||||
io.close
|
io.close
|
||||||
check_upload_size(io.size)
|
check_upload_size(io.size)
|
||||||
File.chmod(600, file_path(name)) if File.exists? file_path(name)
|
File.chmod(0600, file_path(name)) if File.exists? file_path(name)
|
||||||
FileUtils.mv(io.path, file_path(name))
|
FileUtils.mv(io.path, file_path(name))
|
||||||
else
|
else
|
||||||
content = io.read
|
content = io.read
|
||||||
|
|
Loading…
Reference in a new issue