X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/52c35ce10db7cd23f9983484a2ae68d76623245c..ec5417cab8b5b6227670a13d6a58e6e392fb7971:/auth.inc.php diff --git a/auth.inc.php b/auth.inc.php index aceb2de..3901609 100644 --- a/auth.inc.php +++ b/auth.inc.php @@ -29,7 +29,11 @@ class User function html() { - return $this->name ?: $this->login; + $name = htmlspecialchars($this->login); + if ($this->name and $this->name != $name) { + $name = "{$this->name} @$name"; + } + return $name; } function email()