mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Use strip_tags() for error message in ajax_die() (#990)
This commit is contained in:
parent
acda8be43c
commit
8765aaaa3a
3 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ switch ($field) {
|
|||
case 'username':
|
||||
$value = clean_username($value);
|
||||
if ($err = \TorrentPier\Validate::username($value)) {
|
||||
$this->ajax_die(strip_tags($err));
|
||||
$this->ajax_die($err);
|
||||
}
|
||||
$this->response['new_value'] = $this->request['value'];
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue