summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php
index 143ad8923..d971986df 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1475,6 +1475,8 @@ function userinfo($username = null) {
global $conf, $INFO;
/** @var DokuWiki_Auth_Plugin $auth */
global $auth;
+ /** @var Input $INPUT */
+ global $INPUT;
// prepare initial event data
$data = array(
@@ -1493,8 +1495,8 @@ function userinfo($username = null) {
'userinfo' => ''
);
if($username === null) {
- $data['username'] = $username = $_SERVER['REMOTE_USER'];
- $data['name'] = '<bdi>' . hsc($INFO['userinfo']['name']) . '</bdi> (<bdi>' . hsc($_SERVER['REMOTE_USER']) . '</bdi>)';
+ $data['username'] = $username = $INPUT->server->str('REMOTE_USER');
+ $data['name'] = '<bdi>' . hsc($INFO['userinfo']['name']) . '</bdi> (<bdi>' . hsc($INPUT->server->str('REMOTE_USER')) . '</bdi>)';
}
$evt = new Doku_Event('COMMON_USER_LINK', $data);