PMCORE-3421

This commit is contained in:
Andrea Adamczyk
2021-10-14 15:03:59 -04:00
parent eb7f6df2a2
commit 9f96cff4b4

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();