diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-09 11:54:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 11:54:58 +0000 |
commit | cf4f452ab3c76a9ede1ee0faeae1ea3873355542 (patch) | |
tree | 9deb03239422c3a43f3c0e76095857832eab4577 | |
parent | d75fdb486e4025e5396f915154f861b55923f6d0 (diff) | |
parent | e39da522f8a47c8f411ba4e6ec74d7fc4ab6f064 (diff) | |
download | rspamd-cf4f452ab3c76a9ede1ee0faeae1ea3873355542.tar.gz rspamd-cf4f452ab3c76a9ede1ee0faeae1ea3873355542.zip |
Merge pull request #3547 from fatalbanana/clickhouse
[Fix] Clickhouse: escape carriage return
-rw-r--r-- | lualib/lua_clickhouse.lua | 3 |
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 |