]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_content: Use hex representation of fuzzy hashes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 6 Aug 2020 11:06:00 +0000 (12:06 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 6 Aug 2020 11:06:46 +0000 (12:06 +0100)
lualib/lua_content/pdf.lua

index 7b940ff0d04c57d0cf4077b99154248bc573b573..fd3317bac4c3056dcfbe67808499ac9458c04373 100644 (file)
@@ -543,7 +543,7 @@ local function process_javascript(task, pdf, js)
 
   local njs = {
     data = js,
-    hash = rspamd_util.encode_base32(bin_hash),
+    hash = hash:hex(),
     bin_hash = bin_hash,
   }
   pdf.scripts[bin_hash] = njs