aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-09-11 16:30:51 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-09-11 16:31:22 +0100
commit09e96ca03adbdf73ab8ceb7491023b168c1364cb (patch)
tree6802390204ae93b916f1e9ace1724ce74bb9b486 /src/ragel
parent67c8b53122b6538f66cee813b9ec6d1cbe86211e (diff)
downloadrspamd-09e96ca03adbdf73ab8ceb7491023b168c1364cb.tar.gz
rspamd-09e96ca03adbdf73ab8ceb7491023b168c1364cb.zip
[Fix] Fix grammar definition for content-disposition attributes
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/content_disposition.rl4
1 files 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+;