diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-25 13:21:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-25 13:21:51 +0100 |
commit | a03b2c328b0c9cb332527adb584b6e3496de5e46 (patch) | |
tree | a46ff1eabb22c94e76324805be0d38d6ae8efa72 /src/ragel | |
parent | d21fdd376f883510ae2bf5de7307eb59d84cb614 (diff) | |
download | rspamd-a03b2c328b0c9cb332527adb584b6e3496de5e46.tar.gz rspamd-a03b2c328b0c9cb332527adb584b6e3496de5e46.zip |
[Fix] Deal with 8bit characters in email addresses
Diffstat (limited to 'src/ragel')
-rw-r--r-- | src/ragel/smtp_addr_parser.rl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ragel/smtp_addr_parser.rl b/src/ragel/smtp_addr_parser.rl index 7e8498966..501ee82f4 100644 --- a/src/ragel/smtp_addr_parser.rl +++ b/src/ragel/smtp_addr_parser.rl @@ -54,7 +54,9 @@ } action Valid_addr { - addr->flags |= RSPAMD_EMAIL_ADDR_VALID; + if (addr->addr_len > 0) { + addr->flags |= RSPAMD_EMAIL_ADDR_VALID; + } } action Addr_has_angle { |