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 | ce796fb65dd1ae945cc5cfd897691b8ca774ff9c (patch) | |
tree | beabe5d11cdefb0a7a54674ab7a0a87565c987e4 /openvpn-statusinfo-html.lsp | |
parent | 868be7c7183b179ddab351fd32790d843b6854c7 (diff) | |
download | acf-openvpn-ce796fb65dd1ae945cc5cfd897691b8ca774ff9c.tar.bz2 acf-openvpn-ce796fb65dd1ae945cc5cfd897691b8ca774ff9c.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/openvpn/trunk@1678 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openvpn-statusinfo-html.lsp')
-rw-r--r-- | openvpn-statusinfo-html.lsp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openvpn-statusinfo-html.lsp b/openvpn-statusinfo-html.lsp index e6f85b5..e68ca0c 100644 --- a/openvpn-statusinfo-html.lsp +++ b/openvpn-statusinfo-html.lsp @@ -13,14 +13,14 @@ </TR> <% for i in ipairs(view.value) do %> <TR> - <TD><%= view.value[i].CN %></TD> - <TD><%= view.value[i].VIRTADDR %></TD> - <TD><%= view.value[i].REALADDR %></TD> - <TD><%= view.value[i].BYTESRCV %></TD> - <TD><%= view.value[i].BYTESSND %></TD> + <TD><%= html.html_escape(view.value[i].CN) %></TD> + <TD><%= html.html_escape(view.value[i].VIRTADDR) %></TD> + <TD><%= html.html_escape(view.value[i].REALADDR) %></TD> + <TD><%= html.html_escape(view.value[i].BYTESRCV) %></TD> + <TD><%= html.html_escape(view.value[i].BYTESSND) %></TD> </TR> <TR> - <TD COLSPAN=5 style="border-bottom: 1px solid #ccc;"><%= view.value[i].CONN %></TD> + <TD COLSPAN=5 style="border-bottom: 1px solid #ccc;"><%= html.html_escape(view.value[i].CONN) %></TD> </TR> <% end %> |