Merged in bugfix/PMCORE-3421 (pull request #8217)
PMCORE-3421 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
d94523158c
@@ -560,7 +560,9 @@ class InputDocument
|
||||
header("Content-Description: File Transfer");
|
||||
|
||||
if ($fp = fopen($realPath, 'rb')) {
|
||||
ob_end_clean();
|
||||
if (ob_get_contents()) {
|
||||
ob_end_clean();
|
||||
}
|
||||
while (!feof($fp) and (connection_status() == 0)) {
|
||||
print(fread($fp, 8192));
|
||||
flush();
|
||||
|
||||
Reference in New Issue
Block a user