From 4ef05e35b82075ec0a6e1584132619dd3ac2d576 Mon Sep 17 00:00:00 2001 From: Chimo Date: Sun, 23 Apr 2017 19:03:40 +0000 Subject: [PATCH] backupaccount: Don't print page HTML in XML export The current Atom/XML account backup contains the backupaccount HTML at the end of the downloaded file. This change makes it so that only the XML is downloaded by terminating the script before the HTML is served. --- actions/backupaccount.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actions/backupaccount.php b/actions/backupaccount.php index 7f37f3b851..637da0ac3c 100644 --- a/actions/backupaccount.php +++ b/actions/backupaccount.php @@ -74,6 +74,9 @@ class BackupaccountAction extends FormAction // @fixme atom feed logic is in getString... // but we just want it to output to the outputter. $this->raw($stream->getString()); + + // Don't print the page HTML + exit(0); } public function isReadOnly($args) {