summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-15 21:44:39 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-15 21:44:39 +0000
commit021d8e0943124418804973e04172435f4cc101d9 (patch)
tree48ac0f6337ebce6ff8d6fcee7a507209035c1723
parentacca38ff8d4f52d4e28fed68f8c88618d9e036d3 (diff)
downloadacf-openntpd-021d8e0943124418804973e04172435f4cc101d9.tar.bz2
acf-openntpd-021d8e0943124418804973e04172435f4cc101d9.tar.xz
Modified html.lua and viewlibrary.lua and all html files to html_escape variables before displaying them.
git-svn-id: svn://svn.alpinelinux.org/acf/openntpd/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--openntpd-config-html.lsp2
-rw-r--r--openntpd-details-html.lsp2
2 files changed, 2 insertions, 2 deletions
diff --git a/openntpd-config-html.lsp b/openntpd-config-html.lsp
index 72ba5b6..3c03dc1 100644
--- a/openntpd-config-html.lsp
+++ b/openntpd-config-html.lsp
@@ -15,7 +15,7 @@ io.write("</span>")
viewlibrary.dispatch_component("status")
end %>
-<H1><%= form.label %></H1>
+<H1><%= html.html_escape(form.label) %></H1>
<%
form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action
local order = { "setstimeonstartup", "listen", "server", "servers" }
diff --git a/openntpd-details-html.lsp b/openntpd-details-html.lsp
index 0aa9292..125e4b4 100644
--- a/openntpd-details-html.lsp
+++ b/openntpd-details-html.lsp
@@ -13,7 +13,7 @@ io.write("</span>")
viewlibrary.dispatch_component("status")
end %>
-<H2><%= data.label %></H2>
+<H2><%= html.html_escape(data.label) %></H2>
<DL>
<%
displayitem(data.value.date)