From: Andrew Lewis Date: Mon, 9 Nov 2020 10:53:23 +0000 (+0200) Subject: [Fix] Clickhouse: escape carriage return X-Git-Tag: 2.7~162^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3547%2Fhead;p=thirdparty%2Frspamd.git [Fix] Clickhouse: escape carriage return --- diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua index 8891a89fc8..e532cd643c 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