diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-17 12:42:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 12:42:51 +0000 |
commit | 87b967a64116cbc59fbfc920d2c25f7f9c997e49 (patch) | |
tree | 2a9eba6fced04b1d1ff319841aec19f4179e3b25 /src | |
parent | 5f384ad7914d9d46de6906714d2b7fb1d9a66f3d (diff) | |
parent | f0a30558c9f157f383d77eee71038b00ebd5c78e (diff) | |
download | rspamd-87b967a64116cbc59fbfc920d2c25f7f9c997e49.tar.gz rspamd-87b967a64116cbc59fbfc920d2c25f7f9c997e49.zip |
Merge pull request #1145 from moisseev/settings-i
[Minor] settings: make string matches case insensitive
Diffstat (limited to 'src')
-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 |