Skip to content

Commit 07a495f

Browse files
committed
Added exit after backup file reading to avoid html rendering after dump
1 parent 3b322be commit 07a495f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

admin/controller/tools/backup.php

+2
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ function download() {
317317
header('Content-Disposition: attachment; filename="' . $filename . '"');
318318

319319
fpassthru($fp);
320+
321+
exit(0);
320322
} else {
321323
$this->view->errors[] = __('Backup does not exist!');
322324
}

0 commit comments

Comments
 (0)