aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel/rfc2047_parser.rl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-01 12:21:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-01 12:41:12 +0100
commit4f86cbac459a99f2fbebde17db4be9f43ba794bf (patch)
tree8518fc5898d898a5c58e1f5d03726355cc35a527 /src/ragel/rfc2047_parser.rl
parent5cdc76e7ea94333a564d676240c67adf3213ca6d (diff)
downloadrspamd-4f86cbac459a99f2fbebde17db4be9f43ba794bf.tar.gz
rspamd-4f86cbac459a99f2fbebde17db4be9f43ba794bf.zip
[Fix] Fix parsing of rfc2047 tokens with '?' inside
Diffstat (limited to 'src/ragel/rfc2047_parser.rl')
-rw-r--r--src/ragel/rfc2047_parser.rl2
1 files changed, 1 insertions, 1 deletions
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 "?"