From: Chimo Date: Sun, 23 Apr 2017 19:03:40 +0000 (+0000) Subject: backupaccount: Don't print page HTML in XML export X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ef05e35b82075ec0a6e1584132619dd3ac2d576;p=quix0rs-gnu-social.git 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. --- 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) {