Dokuwiki plugin compatibility with current version.

This commit is contained in:
Dominik Pantůček 2023-09-05 21:21:05 +02:00
parent 00ce55e01f
commit 8545c2512e
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ class action_plugin_hackerbase extends DokuWiki_Action_Plugin
$act = act_clean($event->data);
if ($act === 'payments') {
global $INPUT;
$user = preg_replace("/[^a-zA-Z0-9\-]+/", "", $INPUT->server->str('REMOTE_USER'));
$user = $INPUT->server->str('REMOTE_USER');
echo file_get_contents($this->getConf("htmlexports") . '/' . $user . ".html");
die();
} else if ($act === 'brmstatus') {