commit 52fd861: [Minor] Fix Lua 5.1 compatibility

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 22 16:35:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-22 16:33:37 +0000
URL: https://github.com/rspamd/rspamd/commit/52fd861c1bedad63595b57ce228295dc4dd113c5 (HEAD -> master)

[Minor] Fix Lua 5.1 compatibility
Issue: #2713

---
 lualib/lua_util.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
 
 


More information about the Commits mailing list