]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix parsing of rfc2047 tokens with '?' inside
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 1 Apr 2021 11:21:36 +0000 (12:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 1 Apr 2021 11:41:12 +0000 (12:41 +0100)
src/ragel/rfc2047_parser.rl

index 26c016361c208f6b74fa051ac3d396a4590d5825..88e107be17d524f56b58a0b09da8044d693992f4 100644 (file)
@@ -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 "?"