aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-21 15:46:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-21 15:46:38 +0100
commitdf806bccd476072784c855a2c995f0e63b535427 (patch)
treed375fc1cc0932d95c48dd18fa1dee86eb252e3b1 /src/ragel
parent276d5a92efb6f4c630a53398458b7286da048757 (diff)
downloadrspamd-df806bccd476072784c855a2c995f0e63b535427.tar.gz
rspamd-df806bccd476072784c855a2c995f0e63b535427.zip
[Minor] Skip spaces in malformed SMTP addresses
Issue: #3812
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/smtp_address.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ragel/smtp_address.rl b/src/ragel/smtp_address.rl
index 68226f748..9fe9f35eb 100644
--- a/src/ragel/smtp_address.rl
+++ b/src/ragel/smtp_address.rl
@@ -30,7 +30,7 @@
Local_part = Dot_string >User_start %User_end | Quoted_string;
Mailbox = Local_part "@" (address_literal | Domain >Domain_start %Domain_end);
UnangledPath = ( Adl ":" )? Mailbox >Addr_start %Addr_end "."?;
- AngledPath = "<" UnangledPath ">" %Addr_has_angle;
+ AngledPath = "<" FWS? UnangledPath FWS? ">" %Addr_has_angle;
Path = AngledPath | UnangledPath;
SMTPAddr = space* (Path | "<>" %Empty_addr ) %Valid_addr space*;
}%%