diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-09-02 23:35:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-09-02 23:35:12 +0100 |
commit | aa6a8d6ce5e296dd81247f8250cd61e1117145c4 (patch) | |
tree | 3f96c04151e5aa10790c6ea708bb9303ff1e4788 /src/ragel | |
parent | c7bde491422159dc532c7d6c9934f350ba803c40 (diff) | |
download | rspamd-aa6a8d6ce5e296dd81247f8250cd61e1117145c4.tar.gz rspamd-aa6a8d6ce5e296dd81247f8250cd61e1117145c4.zip |
[Fix] Use space category in ragel automata to resolve space characters
Issue: #4247
Diffstat (limited to 'src/ragel')
-rw-r--r-- | src/ragel/smtp_address.rl | 2 |
1 files changed, 1 insertions, 1 deletions
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*; }%% |