summaryrefslogtreecommitdiffstats
path: root/gnats-edit-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'gnats-edit-html.lsp')
-rw-r--r--gnats-edit-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnats-edit-html.lsp b/gnats-edit-html.lsp
index 9cc3514..c8e46ca 100644
--- a/gnats-edit-html.lsp
+++ b/gnats-edit-html.lsp
@@ -25,7 +25,7 @@ displayinfo(myform,tags,"viewonly")
<DL>
<%
local myform = form.file
-io.write('<input type="hidden" value="' .. myform.filename.value .. '" name="name">')
+io.write('<input type="hidden" value="' .. html.html_escape(myform.filename.value) .. '" name="name">')
local tags = { "filename", "filesize", "mtime", "sumerrors", }
displayinfo(myform,tags,"viewonly")
%>
@@ -34,7 +34,7 @@ displayinfo(myform,tags,"viewonly")
<H3>FILE CONTENT</H3>
<%
local myform = form.file
-io.write('<input type="hidden" value="' .. myform.filename.value .. '" name="name">')
+io.write('<input type="hidden" value="' .. html.html_escape(myform.filename.value) .. '" name="name">')
io.write(html.form[myform.filecontent.type](myform.filecontent))
%>