aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-11-09 11:54:58 +0000
committerGitHub <noreply@github.com>2020-11-09 11:54:58 +0000
commitcf4f452ab3c76a9ede1ee0faeae1ea3873355542 (patch)
tree9deb03239422c3a43f3c0e76095857832eab4577
parentd75fdb486e4025e5396f915154f861b55923f6d0 (diff)
parente39da522f8a47c8f411ba4e6ec74d7fc4ab6f064 (diff)
downloadrspamd-cf4f452ab3c76a9ede1ee0faeae1ea3873355542.tar.gz
rspamd-cf4f452ab3c76a9ede1ee0faeae1ea3873355542.zip
Merge pull request #3547 from fatalbanana/clickhouse
[Fix] Clickhouse: escape carriage return
-rw-r--r--lualib/lua_clickhouse.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua
index 8891a89fc..e532cd643 100644
--- a/lualib/lua_clickhouse.lua
+++ b/lualib/lua_clickhouse.lua
@@ -45,11 +45,12 @@ end
local function clickhouse_quote(str)
if str then
- return str:gsub('[\'\\\n\t]', {
+ return str:gsub('[\'\\\n\t\r]', {
['\''] = [[\']],
['\\'] = [[\\]],
['\n'] = [[\n]],
['\t'] = [[\t]],
+ ['\r'] = [[\r]],
})
end