MantisBT: master be57bb8c

Author Committer Branch Timestamp Parent
dhx dhx master 2009-10-28 19:06 master c8a9d4a5
Affected Issues  0011101: Headers are sent too late in file_download.php (after content has been written)
Changeset

ob_end_clean should be called BEFORE headers are sent

Follow-up to commit b341ca89c83b9d906b229d289c35dfcc1185b034

ob_end_clean throws away the output buffer instead of flushing it to the
client. Therefore we should call this BEFORE the file download headers
are sent to the client or else these headers could potentially be thrown
away/lost.

Note to self: don't rely upon incorrect comments in the code that tell
you ob_end_clean flushes the buffer... look it up in the PHP manual!

mod - file_download.php Diff File