Fix htmlexports path.

This commit is contained in:
Dominik Pantůček 2023-07-02 16:30:35 +02:00
parent aedc26d1b8
commit df1c590afc

View file

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