From ac6ceee39397df8191bff60624aad343e50fdfe3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= <grosse@cosmocode.de>
Date: Fri, 16 Feb 2018 18:54:49 +0100
Subject: [PATCH] fix(manifest): check if manifest action enabled before
 sending

---
 lib/exe/manifest.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/exe/manifest.php b/lib/exe/manifest.php
index a5c188202..d11bb5310 100644
--- a/lib/exe/manifest.php
+++ b/lib/exe/manifest.php
@@ -5,5 +5,10 @@ if (!defined('DOKU_INC')) {
 }
 require_once(DOKU_INC . 'inc/init.php');
 
+if (!actionOK('manifest')) {
+    http_status(404, 'Manifest has been disabled in DokuWiki configuration.');
+    return;
+}
+
 $manifest = new \dokuwiki\Manifest();
 $manifest->sendManifest();
-- 
GitLab