about summary refs log tree commit homepage
path: root/examples/cgit-commit-filter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cgit-commit-filter.lua')
-rw-r--r--examples/cgit-commit-filter.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/cgit-commit-filter.lua b/examples/cgit-commit-filter.lua
index 8f9d3eb5..9614c944 100644
--- a/examples/cgit-commit-filter.lua
+++ b/examples/cgit-commit-filter.lua
@@ -32,7 +32,8 @@ function filter_close()
                         html(buffer)
                 else
                         html('<a href="' .. u .. '?x=t&amp;q=')
-                        html_url_arg('"' .. buffer .. '"')
+                        s = string.gsub(buffer, '"', '""')
+                        html_url_arg('"' .. s .. '"')
                         html('"><tt>')
                         html_txt(buffer)
                         html('</tt></a>')