File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 78
78
unlink ($ videoFiles [$ deleteIndex ]);
79
79
unset($ videoFiles [$ deleteIndex ]);
80
80
} else if (isset ($ _REQUEST ['downloadIndex ' ])) {
81
- // can't be output buffering, as this file might be large
82
- ob_end_clean ();
83
81
$ downloadIndex = validInt ($ _REQUEST ['downloadIndex ' ]);
84
82
ZM \Debug ("Download $ downloadIndex, file: " . $ videoFiles [$ downloadIndex ]);
85
83
header ('Pragma: public ' );
91
89
header ('Content-Transfer-Encoding: binary ' );
92
90
header ('Content-Type: application/force-download ' );
93
91
header ('Content-Length: ' .filesize ($ videoFiles [$ downloadIndex ]));
92
+ // can't be output buffering, as this file might be large
93
+ while (ob_get_level ()) {
94
+ ob_end_clean ();
95
+ }
96
+ set_time_limit (0 );
94
97
readfile ($ videoFiles [$ downloadIndex ]);
95
98
exit ;
96
99
}
You can’t perform that action at this time.
0 commit comments