Skip to content

Commit

Permalink
[CritFix] Deal with case-sensivity in Content-Disposition parser
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 25, 2019
1 parent 817a42e commit 6063d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ragel/content_disposition.rl
Expand Up @@ -18,9 +18,9 @@
parameter = CFWS? attribute FWS? "=" FWS? value CFWS?;

ietf_token = token+;
custom_x_token = 'x' "-" token+;
custom_x_token = /x/i "-" token+;
extension_token = ietf_token | custom_x_token;
disposition_type = 'inline' %Disposition_Inline | 'attachment' %Disposition_Attachment
disposition_type = /inline/i %Disposition_Inline | /attachment/i %Disposition_Attachment
| extension_token >Disposition_Start %Disposition_End;
disposition_parm = parameter;
content_disposition = disposition_type (";" disposition_parm)*;
Expand Down

0 comments on commit 6063d58

Please sign in to comment.