diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-15 21:44:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-15 21:44:39 +0000 |
commit | 3c67f77555e636f949588c049c2074c70a1cbe33 (patch) | |
tree | 1b9e71fc71f4d8e0617b0b0973cb411009eb4331 /logfiles-view-html.lsp | |
parent | 5ec7a43c6f0a6cd1369da101fa0e3f1f12d99973 (diff) | |
download | acf-alpine-baselayout-3c67f77555e636f949588c049c2074c70a1cbe33.tar.bz2 acf-alpine-baselayout-3c67f77555e636f949588c049c2074c70a1cbe33.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/alpine-baselayout/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'logfiles-view-html.lsp')
-rw-r--r-- | logfiles-view-html.lsp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logfiles-view-html.lsp b/logfiles-view-html.lsp index 338a384..386eb91 100644 --- a/logfiles-view-html.lsp +++ b/logfiles-view-html.lsp @@ -23,13 +23,13 @@ end <% if form.type == "form" then %> <% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> <% displayformstart(form) %> -<input type="hidden" name="filename" value="<%= form.value.filename.value %>"> +<input type="hidden" name="filename" value="<%= html.html_escape(form.value.filename.value) %>"> <% end %> <textarea name="filecontent"> <%= html.html_escape(form.value.filecontent.value) %> </textarea> -<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(form.value.filecontent.errtxt, "\n", "<BR>") %></P><% end %> -<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(form.value.filecontent.descr, "\n", "<BR>") %></P><% end %> +<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<BR>") %></P><% end %> +<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "<BR>") %></P><% end %> <% if form.type == "form" then %> <H3>Save</H3> |