diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-11-17 10:28:18 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-11-17 10:28:18 +0300 |
commit | f0a30558c9f157f383d77eee71038b00ebd5c78e (patch) | |
tree | b491af6446ef8e7ba617e662074d04c6fa78da1a /src/plugins/lua/settings.lua | |
parent | d8e7133b3af3e169e894e436c24286d824b255d0 (diff) | |
download | rspamd-f0a30558c9f157f383d77eee71038b00ebd5c78e.tar.gz rspamd-f0a30558c9f157f383d77eee71038b00ebd5c78e.zip |
[Minor] settings: make string matches case insensitive
Resolves: #1136
Reported by: @gibzer
Diffstat (limited to 'src/plugins/lua/settings.lua')
-rw-r--r-- | src/plugins/lua/settings.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index a94017090..76898ae58 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -93,17 +93,17 @@ local function check_settings(task) local function check_addr_setting(rule, addr) local function check_specific_addr(elt) if rule['name'] then - if elt['addr'] == rule['name'] then + if rule['name']:lower() == elt['addr']:lower() then return true end end if rule['user'] then - if rule['user'] == elt['user'] then + if rule['user']:lower() == elt['user']:lower() then return true end end if rule['domain'] then - if rule['domain'] == elt['domain'] then + if rule['domain']:lower() == elt['domain']:lower() then return true end end |