From 44774d914c40cf4fae9ebd6af6dcf899a1c7abe2 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 25 Mar 2018 10:20:26 +0200 Subject: [PATCH] We should split the string at ": " instead of at ":" to be fully compatible with IPv6 addresses Signed-off-by: DL6ER --- scripts/pi-hole/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 5e722325..4212cbb6 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -1070,7 +1070,7 @@ var customTooltips = function(tooltip) { style += '; border-color:' + colors.borderColor; style += '; border-width: 2px'; var span = ''; - var num = body[0].split(':'); + var num = body[0].split(': '); if(num[1] > 0) { innerHtml += '' + span + body + '';