]> BookStack Code Mirror - bookstack/commit
Updated attachment download to check OB before cleaning it
authorDan Brown <redacted>
Mon, 9 May 2022 14:25:06 +0000 (15:25 +0100)
committerDan Brown <redacted>
Mon, 9 May 2022 14:25:06 +0000 (15:25 +0100)
commit2a99e23e6d2dfa8898eb7e2a9be97cbe9b819b2c
treeb4f4767a4402ad8e6a0fa03b8b8df1ccae0b89d7
parentb855bbaaeaf392028bc26c985ad6e0323ddd3ac3
Updated attachment download to check OB before cleaning it

Call to `ob_end_clean` would error if the environment did not use the
PHP `output_buffering` option. This adds an additional check and updates
the comment to be more specific to the exact scenario of the condition.
Tested with output_buffering=Off and output_buffering=4096

Closes #3415
app/Http/Controllers/Controller.php