changeset 1713:4d70e9543ef2

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 Jul 2022 11:55:27 -0600
parents 36c28be6d432
children 31a82b0d0a87
files src/luan/modules/lucene/Web_search.luan
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/lucene/Web_search.luan	Thu Jul 14 22:14:21 2022 -0600
+++ b/src/luan/modules/lucene/Web_search.luan	Fri Jul 15 11:55:27 2022 -0600
@@ -193,6 +193,9 @@
 <%
 					for col in range(1, #headers) do
 						local val = row[col]
+						if type(val) == "string" then
+							val = html_encode(val)
+						end
 						%><td><%= val and stringify(val) or "" %></td><%
 					end
 %>