From 228a1e85e3c53b7048bc69d84f3ce00e06582862 Mon Sep 17 00:00:00 2001 From: Safin85 Date: Mon, 11 Jan 2016 17:02:09 +0100 Subject: [PATCH] Update files.php if You use hard code size, some files is going to be destroyed. Because the will not fully load and in case of storing, it will be stored not the full file. --- includes/classes/files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/classes/files.php b/includes/classes/files.php index 4cfe6e2..87d9725 100644 --- a/includes/classes/files.php +++ b/includes/classes/files.php @@ -78,7 +78,7 @@ public function file_list($srvid,$dir,$tpl_browse=false) // Read file $fh = fopen($game_dir, "rb"); - $file_content = fread($fh, 4096); + $file_content = fread($fh, filesize($game_dir)); fclose($fh); // Return remote file content