summaryrefslogtreecommitdiffstats
path: root/dhcp-listhosts-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
commit61131a0d088c5fd27e99291714903050ddb0d41a (patch)
treee79f7d51e9a7814091aa8ec526d0d6e72e978b20 /dhcp-listhosts-html.lsp
parent168d1ee9a8eaf3142e76e4e8b04cc39b5b1769c3 (diff)
downloadacf-dhcp-61131a0d088c5fd27e99291714903050ddb0d41a.tar.bz2
acf-dhcp-61131a0d088c5fd27e99291714903050ddb0d41a.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/dhcp/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'dhcp-listhosts-html.lsp')
-rw-r--r--dhcp-listhosts-html.lsp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcp-listhosts-html.lsp b/dhcp-listhosts-html.lsp
index 6b92ecb..7a8dfd1 100644
--- a/dhcp-listhosts-html.lsp
+++ b/dhcp-listhosts-html.lsp
@@ -17,14 +17,14 @@
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/edithost?host="..host.."&redir="..page_info.orig_action, label="Edit "} %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delhost?host="..host, label="Delete "} %>
</TD>
- <TD style="white-space:nowrap;"><%= host %></TD>
+ <TD style="white-space:nowrap;"><%= html.html_escape(host) %></TD>
</TR>
<% end %>
</TABLE>
<dt>Add new host</dt>
-<dd><form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/createhost" %>" method="POST">
-<input class="hidden" type="hidden" name="redir" value="<%= page_info.orig_action %>" >
+<dd><form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/createhost") %>" method="POST">
+<input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" >
<input type=submit value="New" class="submit">
</form></dd>
</DL>