Skip to content

Commit

Permalink
fix(manifest): check if manifest action enabled before sending
Browse files Browse the repository at this point in the history
  • Loading branch information
micgro42 committed Feb 16, 2018
1 parent c907183 commit ac6ceee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/exe/manifest.php
Expand Up @@ -5,5 +5,10 @@
}
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();

0 comments on commit ac6ceee

Please sign in to comment.