mirror of
https://github.com/pi-hole/web.git
synced 2026-04-20 00:39:52 +01:00
Escape only where we are displaying
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -59,11 +59,11 @@ function generateRow(topic, key, value) {
|
||||
"</div>" +
|
||||
'<div class="box-body">' +
|
||||
'<div class="form-group">';
|
||||
var defaultValueHint = "";
|
||||
let defaultValueHint = "";
|
||||
if (value.modified) {
|
||||
defaultValueHint = "";
|
||||
if (value.default !== null) {
|
||||
var defVal = utils.escapeHtml(JSON.stringify(value.default));
|
||||
let defVal = utils.escapeHtml(JSON.stringify(value.default));
|
||||
switch (defVal) {
|
||||
case "true": {
|
||||
defVal = "enabled";
|
||||
|
||||
Reference in New Issue
Block a user