X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0243f370ae2e2188ea9bec4d859b5ee8f0c17817..a034b7a3f5b363f74a47c9f20bfa0cf4f2988b34:/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()