From a16908c61d018a5961751ec908f1b890b2217b54 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 15 Jan 2009 21:44:39 +0000 Subject: 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 --- iptables-startstop-html.lsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables-startstop-html.lsp') 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 @@

Management

-
" method="POST"> +" method="POST">
Load rules from rules file
@@ -17,9 +17,9 @@
Previous action result
<% if data.value.result.value ~= "" then %> -

<%= string.gsub(data.value.result.value, "\n", "
") %>

+

<%= string.gsub(html.html_escape(data.value.result.value), "\n", "
") %>

<% end if data.value.result.errtxt then %> -

<%= string.gsub(data.value.result.errtxt, "\n", "
") %>

+

<%= string.gsub(html.html_escape(data.value.result.errtxt), "\n", "
") %>

<% end end %>
-- cgit v1.2.3