commit aa6a8d6: [Fix] Use space category in ragel automata to resolve space characters
Vsevolod Stakhov
vsevolod at rspamd.com
Fri Sep 2 22:42:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-09-02 23:35:12 +0100
URL: https://github.com/rspamd/rspamd/commit/aa6a8d6ce5e296dd81247f8250cd61e1117145c4 (HEAD -> master)
[Fix] Use space category in ragel automata to resolve space characters
Issue: #4247
---
src/ragel/smtp_address.rl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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*;
}%%
More information about the Commits
mailing list