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");
|
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user