From 2381d38cb1f7afdfb504870a03c259ba71983902 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 29 Mar 2019 14:16:24 +0000 Subject: [PATCH] [Minor] Use `{=` and `=}` for variables in Jinja templates --- 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 7e0d7d878..a6a99f2b6 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -32,10 +32,10 @@ local nospace = 1 - space local ptrim = space^0 * lpeg.C((space^0 * nospace^1)^0) local match = lpeg.match -lupa.configure{ +lupa.configure('{%', '%}', '{=', '=}', '{#', '#}', { keep_trailing_newline = true, autoescape = false, -} +}) lupa.filters.pbkdf = function(s) local cr = require "rspamd_cryptobox" -- 2.39.5