From: Mischa POSLAWSKY Date: Tue, 27 Apr 2021 01:03:11 +0000 (+0200) Subject: page: omit editing
container for xml response X-Git-Tag: v5.3~23 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/c173b349324dff9933e38a62ca14342430c75e51 page: omit editing
container for xml response --- diff --git a/page.php b/page.php index c313467..8a37533 100644 --- a/page.php +++ b/page.php @@ -60,7 +60,8 @@ if ($Page->editable = $User->admin("edit {$Page->link}")) { include_once 'edit/head.inc.php'; } -if (isset($Page->raw)) { +if (isset($Page->raw) +and @$_SERVER['HTTP_ACCEPT'] !== 'application/xml') { $Page->raw = '
'."\n\n".$Page->raw."
\n\n"; }