Update storage.php
This commit is contained in:
parent
add895b839
commit
5d4f451107
|
@ -145,9 +145,10 @@ if(!check_function_exists("read_storage_file")) {
|
||||||
|
|
||||||
if($upload_filesize > 0) {
|
if($upload_filesize > 0) {
|
||||||
if($fp = fopen($upload_filename, "r")) {
|
if($fp = fopen($upload_filename, "r")) {
|
||||||
if(array_key_equals("binary_safe", $options, true)) {
|
if(array_key_equals("safemode", $options, true)) {
|
||||||
while(!feof($fp)) {
|
while(!feof($fp)) {
|
||||||
$result = fread($fp, 8192);
|
$blocksize = get_value_in_array("blocksize", $options, 8192);
|
||||||
|
$result = fread($fp, $blocksize);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$result = fread($fp, filesize($upload_filename));
|
$result = fread($fp, filesize($upload_filename));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user