From: Vsevolod Stakhov Date: Wed, 14 Jun 2017 14:19:13 +0000 (+0100) Subject: [Minor] Relax content type params values parser X-Git-Tag: 1.6.1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec165c1547346d46cef792a8f0bb9c91f9eb5fc9;p=rspamd.git [Minor] Relax content type params values parser Issue: #1682 --- diff --git a/src/ragel/content_type.rl b/src/ragel/content_type.rl index bbc6d4613..6f65a7d0f 100644 --- a/src/ragel/content_type.rl +++ b/src/ragel/content_type.rl @@ -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?;