summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-20 18:56:02 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-20 18:56:02 +0400
commitb9d5ff827a43f780412426b66852b287947653c3 (patch)
treec995c5cf9cd809d5e5020b82b9f2e4ba088a71c6 /src
parentde116af023c1bcabe862b222a1008d8dccee73c3 (diff)
downloadrspamd-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.lua2
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