diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-20 18:56:02 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-20 18:56:02 +0400 |
commit | b9d5ff827a43f780412426b66852b287947653c3 (patch) | |
tree | c995c5cf9cd809d5e5020b82b9f2e4ba088a71c6 /src | |
parent | de116af023c1bcabe862b222a1008d8dccee73c3 (diff) | |
download | rspamd-b9d5ff827a43f780412426b66852b287947653c3.tar.gz rspamd-b9d5ff827a43f780412426b66852b287947653c3.zip |
* Remove utf8 usage in forged recipients plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/forged_recipients.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/forged_recipients.lua b/src/plugins/lua/forged_recipients.lua index d5fda34bb..77188e830 100644 --- a/src/plugins/lua/forged_recipients.lua +++ b/src/plugins/lua/forged_recipients.lua @@ -26,7 +26,7 @@ function check_forged_headers(task) else -- Find pair for each smtp recipient recipient in To or Cc headers for _,sr in ipairs(smtp_rcpt) do - if sr:byte(1) == utf8.ltsym then + if sr:sub(1,1) == '<' then -- Trim brackets sr = string.sub(sr, 2, -2) end |