Merge pull request #1857 from pi-hole/master

Sync Master -> Dev
This commit is contained in:
Adam Warner
2021-08-04 20:21:44 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -546,6 +546,9 @@ if ($_POST['action'] == 'get_groups') {
$res['domain'] = $utf8_domain.' ('.$res['domain'].')';
}
}
// Prevent domain and comment fields from returning any arbitary javascript code which could be executed on the browser.
$res['domain'] = htmlentities($res['domain']);
$res['comment'] = htmlentities($res['comment']);
array_push($data, $res);
}