From: Vsevolod Stakhov Date: Fri, 2 Sep 2022 22:35:12 +0000 (+0100) Subject: [Fix] Use space category in ragel automata to resolve space characters X-Git-Tag: 3.3~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aa6a8d6ce5e296dd81247f8250cd61e1117145c4;p=rspamd.git [Fix] Use space category in ragel automata to resolve space characters Issue: #4247 --- diff --git a/src/ragel/smtp_address.rl b/src/ragel/smtp_address.rl index 9fe9f35eb..0caf1a65e 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 = "<" FWS? UnangledPath FWS? ">" %Addr_has_angle; + AngledPath = "<" space* UnangledPath space* ">" %Addr_has_angle; Path = AngledPath | UnangledPath; SMTPAddr = space* (Path | "<>" %Empty_addr ) %Valid_addr space*; }%%