]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
backupaccount: Don't print page HTML in XML export
authorChimo <chimo@chromic.org>
Sun, 23 Apr 2017 19:03:40 +0000 (19:03 +0000)
committerChimo <chimo@chromic.org>
Sun, 23 Apr 2017 19:03:40 +0000 (19:03 +0000)
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

index 7f37f3b8519370c414959bd7867c6fbd26613257..637da0ac3cd1c54b49756055f16abda0b7d7454f 100644 (file)
@@ -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) {