From 7caac04de6d9c68609ad357913a233ca53dc9a17 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Fri, 20 Nov 2020 19:22:08 +0100 Subject: [PATCH] [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 --- admin.php | 1 - f.php | 2 -- script.php | 1 - 3 files changed, 4 deletions(-) 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); -- 2.34.1