From bd93652bba291b8c6a5d6f0753aea1a5241f9f6a 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/opennhrp/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-listinterfaces-html.lsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'opennhrp-listinterfaces-html.lsp') diff --git a/opennhrp-listinterfaces-html.lsp b/opennhrp-listinterfaces-html.lsp index ca3fdb6..7f9181c 100644 --- a/opennhrp-listinterfaces-html.lsp +++ b/opennhrp-listinterfaces-html.lsp @@ -4,7 +4,7 @@ require("viewfunctions") <% displaycommandresults({"editinterface"}, session) %> -

<%= view.label %>

+

<%= html.html_escape(view.label) %>

@@ -17,9 +17,9 @@ require("viewfunctions") - - - + + + <% end %>
Action <% io.write(html.link{value = "editinterface?interface="..intf.interface.."&redir="..page_info.orig_action, label="Edit " }) %> <%= intf.interface %><%= intf.type %>

<%= string.gsub(intf.errtxt or "", "\n", "
") %>

<%= html.html_escape(intf.interface) %><%= html.html_escape(intf.type) %>

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

-- cgit v1.2.3