(cp db65aa5) fixes #1297 check output buffer before cleaning it

This commit is contained in:
plegall
2021-01-29 14:52:54 +01:00
parent 92da731a91
commit 4a91f122ed
+6 -2
View File
@@ -221,8 +221,12 @@ if (ini_get('safe_mode') == 0)
@set_time_limit(0); @set_time_limit(0);
} }
// Without clean and flush there may be some image download problems, or image can be corrupted after download // Without clean and flush there may be some image download problems, or image can be corrupted after download
ob_clean(); if (ob_get_length() !== FALSE)
flush(); {
ob_clean();
flush();
}
@readfile($file); @readfile($file);
?> ?>