summaryrefslogtreecommitdiff
path: root/lib/plugins/extension
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/extension')
-rw-r--r--lib/plugins/extension/action.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/plugins/extension/action.php b/lib/plugins/extension/action.php
index 9dd1648ff..3f2ccaace 100644
--- a/lib/plugins/extension/action.php
+++ b/lib/plugins/extension/action.php
@@ -32,16 +32,17 @@ class action_plugin_extension extends DokuWiki_Action_Plugin {
global $USERINFO;
global $INPUT;
+
+ if($event->data != 'plugin_extension') return;
+ $event->preventDefault();
+ $event->stopPropagation();
+
if(empty($_SERVER['REMOTE_USER']) || !auth_isadmin($_SERVER['REMOTE_USER'], $USERINFO['grps'])){
http_status(403);
echo 'Forbidden';
exit;
}
- if($event->data != 'plugin_extension') return;
- $event->preventDefault();
- $event->stopPropagation();
-
header('Content-Type: text/html; charset=utf-8');
$ext = $INPUT->str('ext');