]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Relax content type params values parser
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 14 Jun 2017 14:19:13 +0000 (15:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 14 Jun 2017 14:19:44 +0000 (15:19 +0100)
Issue: #1682

src/ragel/content_type.rl

index bbc6d46136d17c88277a46db454c5dc2d129b872..6f65a7d0f92330572d10918dcfdbcb5eba518fa1 100644 (file)
@@ -14,7 +14,7 @@
                     (((FWS? qcontent)* FWS?) >Quoted_Str_Start %Quoted_Str_End)
                   DQUOTE) CFWS?;
   token = 0x21..0x27 | 0x2a..0x2b | 0x2c..0x2e | 0x30..0x39 | 0x41..0x5a | 0x5e..0x7e;
-  value = (quoted_string | (token -- '"' | 0x3d)+) >Param_Value_Start %Param_Value_End;
+  value = (quoted_string | (token | 0x3d)+) >Param_Value_Start %Param_Value_End;
   attribute = (token+) >Param_Name_Start %Param_Name_End;
   parameter = CFWS? attribute FWS? "=" FWS? value CFWS?;