Skip to content

Commit cbf2fe9

Browse files
victorhorazimmerle
authored andcommitted
Adjust boundary test cases for the less strict parsing
1 parent b638e52 commit cbf2fe9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ v3.0.4 - YYYY-MMM-DD (to be released)
33

44
- Make the boundary check less strict as per RFC2046
55
[Issue #1943 - @victorhora, @allanbomsft]
6-
- Fix buffer size for utf8toUnicode transformation
6+
- Fix buffer size for utf8toUnicode transformation
77
[Issue #1208 - @katef, @victorhora]
88

99

test/test-cases/regression/request-body-parser-multipart.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@
16181618
{
16191619
"enabled":1,
16201620
"version_min":300000,
1621-
"title":"multipart parser (boundary special char - trailing comma+token)",
1621+
"title":"multipart parser (boundary special char - trailing exclamation+token)",
16221622
"client":{
16231623
"ip":"200.249.12.31",
16241624
"port":123
@@ -1633,7 +1633,7 @@
16331633
"User-Agent":"curl/7.38.0",
16341634
"Accept":"*/*",
16351635
"Content-Length":"330",
1636-
"Content-Type":"multipart/form-data;boundary=0000,1111",
1636+
"Content-Type":"multipart/form-data;boundary=0000!1111",
16371637
"Expect":"100-continue"
16381638
},
16391639
"uri":"/",
@@ -1850,7 +1850,7 @@
18501850
},
18511851
"expected":{
18521852
"http_code": 403,
1853-
"debug_log": "boundary was quoted.*No boundaries found in payload"
1853+
"debug_log": "Invalid boundary in C-T \\(characters\\).*boundary was quoted."
18541854
},
18551855
"rules":[
18561856
"SecRuleEngine On",
@@ -1911,7 +1911,7 @@
19111911
},
19121912
"expected":{
19131913
"http_code": 403,
1914-
"debug_log": "boundary was quoted.*No boundaries found in payload"
1914+
"debug_log": "Invalid boundary in C-T \\(characters\\).*boundary was quoted."
19151915
},
19161916
"rules":[
19171917
"SecRuleEngine On",

0 commit comments

Comments
 (0)