summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-17 05:50:38 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-10-17 05:50:38 +0400
commit9564dbc14ddcc4a35d70cb7ee187a2f24752f6eb (patch)
tree4612565e04ac279edcfbb192c7f1167c3c521256 /src/plugins/lua
parent115313228194cacf60a3e09c9b8117078ab37350 (diff)
downloadrspamd-9564dbc14ddcc4a35d70cb7ee187a2f24752f6eb.tar.gz
rspamd-9564dbc14ddcc4a35d70cb7ee187a2f24752f6eb.zip
* Small improvement of lua style
* Add ibility to process A records in spf parser * Add recursion limit to spf parser
Diffstat (limited to 'src/plugins/lua')
-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 82f53dd73..d5fda34bb 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 string.byte(sr, 1) == string.byte('<') then
+ if sr:byte(1) == utf8.ltsym then
-- Trim brackets
sr = string.sub(sr, 2, -2)
end