mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Minor change to make the dashboard's javascript compatible with escaped characters (like apostrophe) in client names
This commit is contained in:
@@ -262,6 +262,7 @@ function updateTopClientsChart() {
|
||||
|
||||
if ({}.hasOwnProperty.call(data.top_sources, client)){
|
||||
// Sanitize client
|
||||
data.top_sources[escapeHtml(client)] = data.top_sources[client];
|
||||
client = escapeHtml(client);
|
||||
if(client.indexOf("|") > -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user