diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 11:26:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-25 11:26:48 +0100 |
commit | 6063d58faf0f905deb163bb38228d1958471595d (patch) | |
tree | 0f9d10c8f751f806a27207add0a078e906d1a6fd /src/ragel | |
parent | 817a42ec5ed9ef52a8ab5fade2440360d2dad470 (diff) | |
download | rspamd-6063d58faf0f905deb163bb38228d1958471595d.tar.gz rspamd-6063d58faf0f905deb163bb38228d1958471595d.zip |
[CritFix] Deal with case-sensivity in Content-Disposition parser
Diffstat (limited to 'src/ragel')
-rw-r--r-- | src/ragel/content_disposition.rl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ragel/content_disposition.rl b/src/ragel/content_disposition.rl index 614d54c68..abcd7796f 100644 --- a/src/ragel/content_disposition.rl +++ b/src/ragel/content_disposition.rl @@ -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)*; |