Mercurial Hosting > luan
changeset 1757:0e59609c3173
lucene page
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 06 Feb 2023 19:33:45 -0700 |
parents | a4b232aa0554 |
children | 27a2530f04b6 6668513a11d7 |
files | src/luan/modules/lucene/Web_search.luan |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/lucene/Web_search.luan Sun Feb 05 22:08:50 2023 -0700 +++ b/src/luan/modules/lucene/Web_search.luan Mon Feb 06 19:33:45 2023 -0700 @@ -193,10 +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><% + val = val and stringify(val) or "" + val = html_encode(val) + %><td><%= val %></td><% end %> </tr>