summaryrefslogtreecommitdiffstats
path: root/iptables-editrule-html.lsp
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
commita16908c61d018a5961751ec908f1b890b2217b54 (patch)
tree111abfc0c89d95c63acb6dfc7b76b67ee63fefa9 /iptables-editrule-html.lsp
parentdac8706eaa8243e8fb6bcfd00fbdbf779f9f0ebc (diff)
downloadacf-iptables-a16908c61d018a5961751ec908f1b890b2217b54.tar.bz2
acf-iptables-a16908c61d018a5961751ec908f1b890b2217b54.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/iptables/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'iptables-editrule-html.lsp')
-rw-r--r--iptables-editrule-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables-editrule-html.lsp b/iptables-editrule-html.lsp
index 9c732ec..7e4d156 100644
--- a/iptables-editrule-html.lsp
+++ b/iptables-editrule-html.lsp
@@ -2,7 +2,7 @@
require("viewfunctions")
%>
-<H1><%= form.label %></H1>
+<H1><%= html.html_escape(form.label) %></H1>
<%
for name,val in pairs(form.value) do val.name = name end
form.value.table.readonly = true
@@ -52,5 +52,5 @@ displayformitem(form.value.tcp_dport)
displayformitem(form.value.udp_sport)
displayformitem(form.value.udp_dport)
%>
-</DL><H2><%= form.option %></H2>
+</DL><H2><%= html.html_escape(form.option) %></H2>
<% displayformend(form) %>