mirror of https://github.com/itflow-org/itflow
Escape potential HTML characters in usernames (ticket collision detection)
This commit is contained in:
parent
3bf4d7a1f1
commit
79dc34da92
4
ajax.php
4
ajax.php
|
|
@ -190,10 +190,10 @@ if (isset($_GET['ticket_query_views'])) {
|
|||
$users = array_unique($users);
|
||||
if (count($users) > 1) {
|
||||
// Multiple viewers
|
||||
$response['message'] = implode(", ", $users) . " are viewing this ticket.";
|
||||
$response['message'] = htmlentities(implode(", ", $users) . " are viewing this ticket.");
|
||||
} else {
|
||||
// Single viewer
|
||||
$response['message'] = implode("", $users) . " is viewing this ticket.";
|
||||
$response['message'] = htmlentities(implode("", $users) . " is viewing this ticket.");
|
||||
}
|
||||
} else {
|
||||
// No viewers
|
||||
|
|
|
|||
Loading…
Reference in New Issue