Update storage.php

This commit is contained in:
Namhyeon Go 2019-03-09 20:25:48 +09:00 committed by GitHub
parent add895b839
commit 5d4f451107
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,9 +145,10 @@ if(!check_function_exists("read_storage_file")) {
if($upload_filesize > 0) {
if($fp = fopen($upload_filename, "r")) {
if(array_key_equals("binary_safe", $options, true)) {
if(array_key_equals("safemode", $options, true)) {
while(!feof($fp)) {
$result = fread($fp, 8192);
$blocksize = get_value_in_array("blocksize", $options, 8192);
$result = fread($fp, $blocksize);
}
} else {
$result = fread($fp, filesize($upload_filename));