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-tail-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-tail-html.lsp')
-rw-r--r-- | logfiles-tail-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logfiles-tail-html.lsp b/logfiles-tail-html.lsp index 72725ad..94bc4a8 100644 --- a/logfiles-tail-html.lsp +++ b/logfiles-tail-html.lsp @@ -8,8 +8,8 @@ function Update(){ $.ajaxSetup({cache:false}); $.getJSON( - '<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>', - {name:'<% io.write(form.value.filename.value) if form.value.grep.value ~= "" then io.write("',grep:'"..form.value.grep.value) end %>', offset:currentoffset}, + '<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action) %>', + {name:'<% io.write(html.html_escape(form.value.filename.value)) if form.value.grep.value ~= "" then io.write("',grep:'"..html.html_escape(form.value.grep.value)) end %>', offset:currentoffset}, function(data) { data.value.filecontent.value = data.value.filecontent.value.split("\n").join("<br>\n"); |