]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Deal with broken params encoded in quotes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Dec 2017 19:15:27 +0000 (19:15 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Dec 2017 19:15:27 +0000 (19:15 +0000)
Issue: #1969 (partially)

src/ragel/content_disposition.rl

index fb01e350c5e92c649b646bad76424931ca19f506..5aca57db51d48f83786574650a1432616749a346 100644 (file)
@@ -15,7 +15,7 @@
                   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;
-  attribute = (token+) >Param_Name_Start %Param_Name_End;
+  attribute = (quoted_string | (token -- '"' | 0x3d)+) >Param_Name_Start %Param_Name_End;
   parameter = CFWS? attribute FWS? "=" FWS? value CFWS?;
 
   ietf_token = token+;