From: Jerome Jutteau Date: Fri, 20 Nov 2020 18:22:08 +0000 (+0100) Subject: [BUGFIX] remove useless ob_flush X-Git-Tag: 4.2.0~4 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/7caac04de6d9c68609ad357913a233ca53dc9a17 [BUGFIX] remove useless ob_flush - Could generate notices which corrupt files - Does not seem to be effective https://www.php.net/manual/en/function.ob-flush.php#109699 Signed-off-by: Jerome Jutteau --- diff --git a/admin.php b/admin.php index a42b20f..e5ba8bd 100644 --- a/admin.php +++ b/admin.php @@ -277,7 +277,6 @@ if (php_sapi_name() == "cli") { $r = fopen(VAR_FILES . $p . $l['hash'], 'r'); while (!feof($r)) { print fread($r, 1024); - ob_flush(); } fclose($r); } diff --git a/f.php b/f.php index d61caeb..8f7aa37 100644 --- a/f.php +++ b/f.php @@ -268,7 +268,6 @@ else if ($link['crypted']) { while (!feof($r)) { $dec = mdecrypt_generic($m, fread($r, 1024)); print $dec; - ob_flush(); } fclose($r); /* Cleanup. */ @@ -280,7 +279,6 @@ else { $r = fopen(VAR_FILES . $p . $link['hash'], 'r'); while (!feof($r)) { print fread($r, 1024); - ob_flush(); } fclose($r); } diff --git a/script.php b/script.php index 2cc716b..cd7cec6 100644 --- a/script.php +++ b/script.php @@ -198,7 +198,6 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) $r = fopen(VAR_FILES . $p . $link['hash'], 'r'); while (!feof($r)) { print fread($r, 1024); - ob_flush(); } fclose($r);