mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 18:59:48 +01:00
Apply htmlentities in a couple of places to prevent xss
Co-authored-by: wtwver <wtwver@users.noreply.github.com> Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user