commit 6063d58: [CritFix] Deal with case-sensivity in Content-Disposition parser
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Sep 25 10:28:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-25 11:26:48 +0100
URL: https://github.com/rspamd/rspamd/commit/6063d58faf0f905deb163bb38228d1958471595d
[CritFix] Deal with case-sensivity in Content-Disposition parser
---
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 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)*;
More information about the Commits
mailing list