diff --git a/files/app/main/status/e/dhcp.ut b/files/app/main/status/e/dhcp.ut index 588be828..10b8ad60 100755 --- a/files/app/main/status/e/dhcp.ut +++ b/files/app/main/status/e/dhcp.ut @@ -142,9 +142,10 @@ if (f) { f = fs.open(dhcp.dhcptags); if (f) { for (let l = f.read("line"); length(l); l = f.read("line")) { - const m = match(trim(l), /^(.+) (.+) (.+)$/); + const m = match(replace(l, /\n+$/, ""), /^([^\W_]+)\s(\w+)\s(.+)$/); if (m) { - push(advtags, { name: m[1], type: m[2], match: m[3] }); + const p = replace(replace(replace(m[3], /"/g, """), //g, ">"); + push(advtags, { name: m[1], type: m[2], match: p }); } } f.close(); @@ -152,7 +153,7 @@ if (f) { f = fs.open(dhcp.dhcpoptions); if (f) { for (let l = f.read("line"); length(l); l = f.read("line")) { - const m = match(trim(l), /^(.*) (force|onrequest) ([0-9]+) (.+)$/); + const m = match(replace(l, /\n+$/, ""), /^(\S*)\s(force|onrequest)\s(\d+)\s(.+)$/); if (m) { push(advoptions, { name: m[1], always: m[2] === "force", type: int(m[3]), value: m[4] }); } @@ -266,8 +267,8 @@ if (f) { - - + + @@ -567,7 +568,7 @@ if (f) { switch (target.innerText) { case "+": const item = document.createElement("div"); - item.innerHTML = `
`; + item.innerHTML = `
`; htmx.find("#ctrl-modal .dialog .dhcp-tags .list").appendChild(item.firstChild); break; case "-": diff --git a/files/app/main/status/e/internal-services.ut b/files/app/main/status/e/internal-services.ut index 141f9dc1..8358fe96 100755 --- a/files/app/main/status/e/internal-services.ut +++ b/files/app/main/status/e/internal-services.ut @@ -116,7 +116,7 @@ if (request.env.REQUEST_METHOD === "DELETE") {
Remote logging
-
Send internal logging information to a remove server
+
Send internal logging information to a remote server