commit 09e96ca: [Fix] Fix grammar definition for content-disposition attributes
Vsevolod Stakhov
vsevolod at rspamd.com
Mon Sep 11 15:35:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-09-11 16:30:51 +0100
URL: https://github.com/rspamd/rspamd/commit/09e96ca03adbdf73ab8ceb7491023b168c1364cb (HEAD -> master)
[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+;
More information about the Commits
mailing list