summaryrefslogtreecommitdiffstats
path: root/iptables-startstop-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-startstop-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-startstop-html.lsp')
-rw-r--r--iptables-startstop-html.lsp6
1 files changed, 3 insertions, 3 deletions
diff --git a/iptables-startstop-html.lsp b/iptables-startstop-html.lsp
index caa0b96..9b6c9c0 100644
--- a/iptables-startstop-html.lsp
+++ b/iptables-startstop-html.lsp
@@ -2,7 +2,7 @@
<H1>Management</H1>
<DL>
-<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST">
+<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action) %>" method="POST">
<DT>Load rules from rules file</DT>
<DD>
<input class="submit" type="submit" name="action" value="Reload">
@@ -17,9 +17,9 @@
<DT>Previous action result</DT>
<DD>
<% if data.value.result.value ~= "" then %>
-<P CLASS='descr'><%= string.gsub(data.value.result.value, "\n", "<BR>") %></P>
+<P CLASS='descr'><%= string.gsub(html.html_escape(data.value.result.value), "\n", "<BR>") %></P>
<% end if data.value.result.errtxt then %>
-<P CLASS='error'><%= string.gsub(data.value.result.errtxt, "\n", "<BR>") %></P>
+<P CLASS='error'><%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "<BR>") %></P>
<% end end %>
</DD>
</DL>