aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-19 08:28:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-19 08:28:42 +0100
commit011de521fb453cc3621ea673a6b758624d7511cb (patch)
tree4bb7022ea5cdf6b60256a7b01ad0746f48268732 /src
parent8fb06a8fe1ec7e3c96baa98085b7da6bbb07db03 (diff)
downloadrspamd-011de521fb453cc3621ea673a6b758624d7511cb.tar.gz
rspamd-011de521fb453cc3621ea673a6b758624d7511cb.zip
[Minor] Convert from rspamd_text
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/greylist.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index 292d1fcaa..424cf5509 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -207,7 +207,7 @@ local function greylist_check(task)
task:insert_result(settings['symbol'], 0.0, 'greylisted', end_time)
local ua = task:get_request_header('User-Agent') or ''
- if ua == 'rspamc' then return end -- Likely rspamc scan
+ if tostring(ua) == 'rspamc' then return end -- Likely rspamc scan
if settings.message_func then
task:set_pre_result('soft reject',
@@ -312,7 +312,7 @@ local function greylist_set(task)
local ua = task:get_request_header('User-Agent') or ''
local is_rspamc = false
- if ua == 'rspamc' then is_rspamc = true end
+ if tostring(ua) == 'rspamc' then is_rspamc = true end
if is_whitelisted then
if action == 'greylist' then