From cee2ffc44ecdfb63f98aa1dd1d3f930737a8e68c 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/devtools/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed --- acfupdate-html.lsp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/acfupdate-html.lsp b/acfupdate-html.lsp index b612f6d..aa5683e 100644 --- a/acfupdate-html.lsp +++ b/acfupdate-html.lsp @@ -14,10 +14,10 @@ require("viewfunctions") end if #cmdresult > 0 then for i,result in ipairs(cmdresult) do - io.write("

"..result.label.."

\n
\n") + io.write("

"..html.html_escape(result.label).."

\n
\n") for i,value in ipairs(result.value) do if value.updates ~= "" then %> -

<%= value.name %>

+

<%= html.html_escape(value.name) %>

<%= html.html_escape(value.updates) %>
<% end end @@ -32,7 +32,7 @@ require("viewfunctions") displayitem(data.value.version) if data.value.version and data.value.version.errtxt and session.permissions.apk and session.permissions.apk.install then %> - Install + Install <% end displayitem(data.value.repository) @@ -44,32 +44,32 @@ displayitem(data.value.repository)
View Status
-
" method="POST"> - +" method="POST"> +
<% if session.permissions.acfupdate.diff then %>
View Diff
-
" method="POST"> - +" method="POST"> +
<% end %>
View Log
-
" method="POST"> - +" method="POST"> +
<% if session.permissions.acfupdate.update then %>
Update
-
" method="POST"> - +" method="POST"> +
-- cgit v1.2.3