This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Fixed
FS#2011 Bug in getUser() in dwpage.php: Wrong variablename
other
2010-08-26Scarecrow
The getUser() in dwpage.php uses both the variables $user and $username, but as far as I see there should only be one variable as they are both referring to the same value.
In the current implementation the return value will always be 'admin' as empty($username) is always true:
function getUser() {
$user = getenv('USER');
if (empty ($username)) {
$user = getenv('USERNAME');
} else {
return $user;
}
if (empty ($username)) {
$user = 'admin';
}
return $user;
}