From 09e96ca03adbdf73ab8ceb7491023b168c1364cb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 11 Sep 2023 16:30:51 +0100 Subject: [PATCH] [Fix] Fix grammar definition for content-disposition attributes --- src/ragel/content_disposition.rl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ragel/content_disposition.rl b/src/ragel/content_disposition.rl index 6087d3d17..ef316f7e6 100644 --- a/src/ragel/content_disposition.rl +++ b/src/ragel/content_disposition.rl @@ -13,8 +13,8 @@ (((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 | utf8_2c | utf8_3c | utf8_4c)+) >Param_Value_Start %Param_Value_End; - attribute = (quoted_string | (token -- '"' | 0x3d)+) >Param_Name_Start %Param_Name_End; + value = (quoted_string | (token -- ('"' | 0x3d | utf8_2c | utf8_3c | utf8_4c)+)) >Param_Value_Start %Param_Value_End; + attribute = (quoted_string | (token -- ('"' | '='))+) >Param_Name_Start %Param_Name_End; parameter = CFWS? attribute FWS? "=" FWS? value CFWS?; ietf_token = token+; -- 2.39.5