]> Sergey Matveev's repositories - public-inbox.git/commitdiff
examples/cgit-commit-filter.lua: escape '&' properly in URL
authorEric Wong <e@80x24.org>
Sun, 30 Dec 2018 20:10:40 +0000 (20:10 +0000)
committerEric Wong <e@80x24.org>
Sun, 30 Dec 2018 20:10:40 +0000 (20:10 +0000)
examples/cgit-commit-filter.lua

index 1616b5a0d711408886523c4836f89e76189009b2..7799befa2b822e3baa7e91e1e4204717c3cb0b24 100644 (file)
@@ -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)