From: Vsevolod Stakhov Date: Thu, 1 Apr 2021 11:21:36 +0000 (+0100) Subject: [Fix] Fix parsing of rfc2047 tokens with '?' inside X-Git-Tag: 3.0~535 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4f86cbac459a99f2fbebde17db4be9f43ba794bf;p=rspamd.git [Fix] Fix parsing of rfc2047 tokens with '?' inside --- diff --git a/src/ragel/rfc2047_parser.rl b/src/ragel/rfc2047_parser.rl index 26c016361..88e107be1 100644 --- a/src/ragel/rfc2047_parser.rl +++ b/src/ragel/rfc2047_parser.rl @@ -43,7 +43,7 @@ token = (graph - especials)+; charset = token; encoding = "Q" | "q" | "B" | "b"; - encoded_text = (print - ("?"))+; + encoded_text = (print+ -- ("?=")); encoded_word = "=?" charset >Start_Charset %End_Charset ("*" language)? "?" encoding %End_Encoding "?"