From 13fcdbfb111a7e9715cf067d8eebd954fb6a3f2f Mon Sep 17 00:00:00 2001 From: lopar Date: Sun, 4 Mar 2018 02:24:24 +0200 Subject: [PATCH] sanitarise error --- classes/nick.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/nick.php b/classes/nick.php index 7522ca6..36559c0 100644 --- a/classes/nick.php +++ b/classes/nick.php @@ -51,15 +51,15 @@ class nick return 'невидимка'; } else { if ($this->user_data['align']) { - $n .= sprintf('', $this->user_data['align']); + $n .= sprintf('', htmlspecialchars($this->user_data['align'])); } if ($this->user_data['klan']) { - $n .= sprintf('', $this->user_data['klan']); + $n .= sprintf('', htmlspecialchars($this->user_data['klan'])); } } - $n .= sprintf('%s [%s] ', $this->user_data['login'], $this->user_data['level'], $this->user_data['login']); + $n .= sprintf('%s [%s] ', htmlspecialchars($this->user_data['login']), htmlspecialchars($this->user_data['level']), htmlspecialchars($this->user_data['login'])); - return htmlspecialchars($n); + return $n; } /**