From 3c67f77555e636f949588c049c2074c70a1cbe33 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/alpine-baselayout/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed --- interfaces-read-html.lsp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'interfaces-read-html.lsp') diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index d0984dc..7504a1f 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -11,10 +11,10 @@ io.write("") <% showoption = function(option) if option.errtxt or option.value ~= "" then %> - <%= option.label %> + <%= html.html_escape(option.label) %> > - <%= string.gsub(tostring(option.value), "\n", "
") %> - <% if option.errtxt then io.write("
"..option.errtxt) end %> + <%= string.gsub(html.html_escape(tostring(option.value)), "\n", "
") %> + <% if option.errtxt then io.write("
"..html.html_escape(option.errtxt)) end %> <% end %> <% end %> @@ -29,7 +29,7 @@ end %>
<% for i,entry in ipairs(view.value) do local interface = entry.value %> -
<%= interface.name.value %>
+
<%= html.html_escape(interface.name.value) %>
<% @@ -42,16 +42,16 @@ end %> end %> <% if session.permissions.interfaces.update then %> - Edit + Edit <% end if session.permissions.interfaces.delete then %> - Delete + Delete <% end if session.permissions.interfaces.ifup then %> - ifup + ifup <% end if session.permissions.interfaces.ifdown then %> - ifdown + ifdown <% end %>
@@ -63,5 +63,5 @@ end %>

WARNING!!! Restarting networking may cause the ACF web interface to stop functioning. Try refreshing this page after restarting. If that fails, you may have to use terminal access to recover.

Restart Networking
-
">
+
">
-- cgit v1.2.3