]> source.dussan.org Git - rspamd.git/commitdiff
* Remove utf8 usage in forged recipients plugin
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 20 Oct 2009 14:56:02 +0000 (18:56 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 20 Oct 2009 14:56:02 +0000 (18:56 +0400)
src/plugins/lua/forged_recipients.lua

index d5fda34bbe158d0da955ebde0b8b03525924f97d..77188e83024aedc869081cbe18f0b55ddf697119 100644 (file)
@@ -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