Update storage.php

This commit is contained in:
Namhyeon Go 2018-10-03 01:16:26 +09:00 committed by GitHub
parent db8a86400a
commit 51f234832c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,6 +166,11 @@ if(!function_exists("remove_storage_file")) {
// add option: encryption
$encryption = get_value_in_array("encryption", $options, "");
if(!empty($encryption)) {
if(!loadHelper("encryptiontool")) {
$encryption = "";
}
}
if(file_exists($upload_filename)) {
if(!array_key_empty("chmod", $options)) {
@ -205,6 +210,11 @@ if(!function_exists("write_storage_file")) {
// add option: encryption
$encryption = get_value_in_array("encryption", $options, "");
if(!empty($encryption)) {
if(!loadHelper("encryptiontool")) {
$encryption = "";
}
}
if(file_exists($upload_filename) && in_array($mode, array("fake", "w"))) {
if(!array_key_empty("filename", $options)) {