Update storage.php

This commit is contained in:
Namhyeon Go 2020-06-21 17:19:53 +09:00 committed by GitHub
parent e490264725
commit b36a87019a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,6 +342,8 @@ if(!is_fn("write_storage_file")) {
if($rotate_size > filesize($upload_filename)) {
if(loadHelper("exectool")) {
exec_command(sprintf("tail -c %s '%s' > '%s'", $size_limit, $upload_filename, $upload_filename));
} else {
write_common_log("failed load exectool helper", "system/storage");
}
}
}