diff --git a/scripts/pi-hole/php/func.php b/scripts/pi-hole/php/func.php index 12e410618..4d79872b1 100644 --- a/scripts/pi-hole/php/func.php +++ b/scripts/pi-hole/php/func.php @@ -472,6 +472,7 @@ function returnSuccess($message = "", $json = true) function returnError($message = "", $json = true) { + $message = htmlentities($message) ; if ($json) { return [ "success" => false, "message" => $message ]; } else { diff --git a/settings.php b/settings.php index d08d17fb3..a3ce919a3 100644 --- a/settings.php +++ b/settings.php @@ -41,7 +41,7 @@

Debug

-
+