diff --git a/index.php b/index.php index 470c5180..a40d5713 100644 --- a/index.php +++ b/index.php @@ -68,7 +68,7 @@
-

Queries over Time

+

Queries over last 24 hours

diff --git a/scripts/pi-hole/php/tailLog.php b/scripts/pi-hole/php/tailLog.php index bf23941a..ce572f01 100644 --- a/scripts/pi-hole/php/tailLog.php +++ b/scripts/pi-hole/php/tailLog.php @@ -30,7 +30,7 @@ if(isset($_GET["offset"])) fseek($file, $offset); $lines = []; while (!feof($file)) - array_push($lines,fgets($file)); + array_push($lines, htmlspecialchars(fgets($file))); die(json_encode(array("offset" => ftell($file), "lines" => $lines))); } }