diff options
author | jim-p <jimp@netgate.com> | 2019-03-10 19:43:48 -0400 |
---|---|---|
committer | jim-p <jimp@netgate.com> | 2019-03-10 19:44:33 -0400 |
commit | 428f6f021c65ed612833eb4343bf103113059f9e (patch) | |
tree | 9d36ea4e94b5d12b5ca14aed38cefc011987e0f9 /src/usr/local/www | |
parent | 4ee7905199a0e81dc06dab4bdf903db0514dd55e (diff) | |
download | pfsense-428f6f021c65ed612833eb4343bf103113059f9e.zip pfsense-428f6f021c65ed612833eb4343bf103113059f9e.tar.gz |
Fix output buffering when downloading config backups. Fixes #9390
(cherry picked from commit 4015b03d4b184e546cb3590430fee6f9953ce23e)
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/diag_backup.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php index b746381..48ca216 100644 --- a/src/usr/local/www/diag_backup.php +++ b/src/usr/local/www/diag_backup.php @@ -225,8 +225,12 @@ if ($_POST) { header("Pragma: private"); header("Cache-Control: private, must-revalidate"); } - echo $data; + while (ob_get_level()) { + @ob_end_clean(); + } + echo $data; + @ob_end_flush(); exit; } } |