Merged in bugfix/PMCORE-3421 (pull request #8217)

PMCORE-3421

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Andrea Adamczyk
2021-10-14 20:23:44 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -560,7 +560,9 @@ class InputDocument
header("Content-Description: File Transfer"); header("Content-Description: File Transfer");
if ($fp = fopen($realPath, 'rb')) { if ($fp = fopen($realPath, 'rb')) {
if (ob_get_contents()) {
ob_end_clean(); ob_end_clean();
}
while (!feof($fp) and (connection_status() == 0)) { while (!feof($fp) and (connection_status() == 0)) {
print(fread($fp, 8192)); print(fread($fp, 8192));
flush(); flush();