]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] ARC: Fix Lua 5.3 compatibility; timestamp should be integer 1748/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 12 Jul 2017 11:45:01 +0000 (13:45 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 12 Jul 2017 11:45:01 +0000 (13:45 +0200)
src/plugins/lua/arc.lua

index 997551c0807c0662eefcc52901cd896903838b24..343f9aed4a36bd6a8b1805b61ba76c1a4737b6e2 100644 (file)
@@ -422,7 +422,7 @@ local function arc_sign_seal(task, params, header)
   rspamd_logger.debugm(N, task, 'update signature with header: %s', s)
 
   local cur_arc_seal = string.format('i=%d; s=%s; d=%s; t=%d; a=rsa-sha256; cv=%s; b=',
-      cur_idx, params.selector, params.domain, rspamd_util.get_time(), params.arc_cv)
+      cur_idx, params.selector, params.domain, math.floor(rspamd_util.get_time()), params.arc_cv)
   s = string.format('%s:%s', 'arc-seal', cur_arc_seal)
   sha_ctx:update(s)
   rspamd_logger.debugm(N, task, 'initial update signature with header: %s', s)