diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-22 16:33:37 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-22 16:33:37 +0000 |
commit | 52fd861c1bedad63595b57ce228295dc4dd113c5 (patch) | |
tree | 1881e6f62b2da5a0648d279f50b1b40f83d131bf | |
parent | 295b806e92a75d06eae3b02a633a647bf28b8bec (diff) | |
download | rspamd-52fd861c1bedad63595b57ce228295dc4dd113c5.tar.gz rspamd-52fd861c1bedad63595b57ce228295dc4dd113c5.zip |
[Minor] Fix Lua 5.1 compatibility
Issue: #2713
-rw-r--r-- | lualib/lua_util.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lualib/lua_util.lua b/lualib/lua_util.lua index b12a258f5..34bafcc4b 100644 --- a/lualib/lua_util.lua +++ b/lualib/lua_util.lua @@ -593,7 +593,8 @@ exports.extract_specific_urls = function(params_or_task, lim, need_emails, filte if params.prefix then cache_key = params.prefix else - cache_key = string.format('sp_urls_%d%s', params.limit, params.need_emails) + cache_key = string.format('sp_urls_%d%s', params.limit, + tostring(params.need_emails)) end |