about summary refs log tree commit homepage
path: root/examples
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-12-30 20:10:40 +0000
committerEric Wong <e@80x24.org>2018-12-30 20:10:40 +0000
commitc3a8ba378c7d3548a5d3ede110b90f8aa8e2473e (patch)
tree45454ff767eeb60a0d0dc96ff4051a1dc650a01f /examples
parenteda591535fea60535b9eb7d3df319872daf8771e (diff)
downloadpublic-inbox-c3a8ba378c7d3548a5d3ede110b90f8aa8e2473e.tar.gz
examples/cgit-commit-filter.lua: escape '&' properly in URL
Diffstat (limited to 'examples')
-rw-r--r--examples/cgit-commit-filter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cgit-commit-filter.lua b/examples/cgit-commit-filter.lua
index 1616b5a0..7799befa 100644
--- a/examples/cgit-commit-filter.lua
+++ b/examples/cgit-commit-filter.lua
@@ -26,7 +26,7 @@ function filter_close()
                 if u == nil then
                         html(buffer)
                 else
-                        html('<a href="' .. u .. '?x=t&q=')
+                        html('<a href="' .. u .. '?x=t&amp;q=')
                         html_url_arg('"' .. buffer .. '"')
                         html('"><tt>')
                         html_txt(buffer)