mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Replace all instances of htmlentities() with the new function nullable_htmlentities() thanks @bhopkins0
This commit is contained in:
4
ajax.php
4
ajax.php
@@ -205,10 +205,10 @@ if (isset($_GET['ticket_query_views'])) {
|
||||
$users = array_unique($users);
|
||||
if (count($users) > 1) {
|
||||
// Multiple viewers
|
||||
$response['message'] = htmlentities(implode(", ", $users) . " are viewing this ticket.");
|
||||
$response['message'] = nullable_htmlentities(implode(", ", $users) . " are viewing this ticket.");
|
||||
} else {
|
||||
// Single viewer
|
||||
$response['message'] = htmlentities(implode("", $users) . " is viewing this ticket.");
|
||||
$response['message'] = nullable_htmlentities(implode("", $users) . " is viewing this ticket.");
|
||||
}
|
||||
} else {
|
||||
// No viewers
|
||||
|
||||
Reference in New Issue
Block a user