]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix user settings check
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Sep 2017 18:02:18 +0000 (19:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Sep 2017 18:02:18 +0000 (19:02 +0100)
Issue: #1835

lualib/maps.lua

index 58f64d207a6cf48f20b4d00899ab9b084d74ffb0..c92c690c091c56fb1e6b12aabb3c8725265937f5 100644 (file)
@@ -168,6 +168,8 @@ local function rspamd_maybe_check_map(key, what)
 
     if mn and rspamd_maps[mn] then
       return rspamd_maps[mn]:get_key(key)
+    else
+      return what:lower() == key
     end
   else
     return what:lower() == key