From 642ca8c3a410d0fcd53d756534c22ea4c3b9013e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 26 Feb 2024 10:41:43 +0000 Subject: [PATCH] [Minor] Escape liquid --- lualib/lua_util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index a2b3862e3..ac755182b 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -204,7 +204,7 @@ end -- @param {string} text text containing variables -- @param {table} replacements key/value pairs for replacements -- @param {boolean} skip_global_env don't export Rspamd superglobals --- @param {boolean} is_orig use the original lupa configuration with `{{` for variables +-- @param {boolean} is_orig use the original lupa configuration with {% raw %}`{{`{% endraw %} for variables -- @param {table} custom_filters custom filters to use (or nil if not needed) -- @return {string} string containing replaced values -- @example @@ -243,7 +243,7 @@ end -- @param {string} filename name of file to expand -- @param {table} replacements key/value pairs for replacements -- @param {boolean} skip_global_env don't export Rspamd superglobals --- @param {boolean} is_orig use the original lupa configuration with `{{` for variables +-- @param {boolean} is_orig use the original lupa configuration with {% raw %}`{{`{% endraw %} for variables -- @param {table} custom_filters custom filters to use (or nil if not needed) -- @return {string} string containing replaced values -- @example -- 2.39.5