Skip to content

Commit

Permalink
[Fix] Fix grammar definition for content-disposition attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 11, 2023
1 parent 67c8b53 commit 09e96ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ragel/content_disposition.rl
Original file line number Diff line number Diff line change
Expand Up @@ -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+;
Expand Down

0 comments on commit 09e96ca

Please sign in to comment.