nickname() function replaced by nick class

This commit is contained in:
lopar
2018-03-03 23:34:13 +02:00
parent a17571c4f2
commit 7c612d6088
15 changed files with 27 additions and 54 deletions

View File

@@ -48,11 +48,11 @@ class nick
}
$n .= sprintf('<b>%s</b> [%s] <a href="inf.php?%s" target="_blank"><img src="i/inf.gif" style="width:12px;height:11px"></a>', $this->user_data['login'], $this->user_data['level'], $this->user_data['login']);
return $n;
return htmlspecialchars($n);
}
public function short()
{
return $this->user_data['login'];
return htmlspecialchars($this->user_data['login']);
}
}