diff --git a/scripts/pi-hole/php/tailLog.php b/scripts/pi-hole/php/tailLog.php
index cdd2b301..a7d12ef3 100644
--- a/scripts/pi-hole/php/tailLog.php
+++ b/scripts/pi-hole/php/tailLog.php
@@ -10,12 +10,14 @@ require "password.php";
if(!$auth) die("Not authorized");
function formatLine($line){
+ $txt = preg_replace("/ dnsmasq\[[0-9]*\]/", "", htmlspecialchars($line));
+
if (strpos($line, "blacklisted") || strpos($line, "gravity blocked")) {
- $txt = ''.htmlspecialchars($line).'';
+ $txt = ''.$txt.'';
} elseif (strpos($line, "query[A") || strpos($line, "query[DHCP")) {
- $txt = ''.htmlspecialchars($line).'';
+ $txt = ''.$txt.'';
} else {
- $txt = ''.htmlspecialchars($line).'';
+ $txt = ''.$txt.'';
}
return $txt;
}