mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Queries: escape querystatus.fieldtext
Even though right now the API doesn't include any HTML code, it's a better practice to be defensive here. Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -590,7 +590,7 @@ $(function () {
|
||||
" " +
|
||||
querystatus.colorClass +
|
||||
"' title='" +
|
||||
querystatus.fieldtext +
|
||||
utils.escapeHtml(querystatus.fieldtext) +
|
||||
"'></i>"
|
||||
);
|
||||
} else if (querystatus.colorClass !== false) {
|
||||
|
||||
Reference in New Issue
Block a user