Skip to content

Commit 159cb4e

Browse files
committed
Fix a failing test.
1 parent 9cb9309 commit 159cb4e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

tests/regression/misc/00-multipart-parser.t

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,15 +1353,14 @@
13531353
SecDebugLog $ENV{DEBUG_LOG}
13541354
SecDebugLogLevel 9
13551355
SecRequestBodyAccess On
1356-
SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny,id:500134"
1357-
SecRule MULTIPART_UNMATCHED_BOUNDARY "\@eq 1" "phase:2,deny,id:500135"
1358-
SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny,id:500136"
1356+
SecRule MULTIPART_STRICT_ERROR "\@eq 1" "phase:2,deny,status:400,id:500134"
1357+
SecRule REQBODY_PROCESSOR_ERROR "\@eq 1" "phase:2,deny,status:400,id:500136"
13591358
),
13601359
match_log => {
1361-
debug => [ qr/boundary was quoted.*No boundaries found in payload/s, 1 ],
1360+
debug => [ qr/Multipart: Warning: boundary was quoted./s, 1 ],
13621361
},
13631362
match_response => {
1364-
status => qr/^403$/,
1363+
status => qr/^400$/,
13651364
},
13661365
request => new HTTP::Request(
13671366
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
@@ -1370,20 +1369,20 @@
13701369
],
13711370
normalize_raw_request_data(
13721371
q(
1373-
--0000
1372+
-- 0000
13741373
Content-Disposition: form-data; name="name"
13751374
13761375
Brian Rectanus
1377-
--0000
1376+
-- 0000
13781377
Content-Disposition: form-data; name="email"
13791378
13801379
brian.rectanus@breach.com
1381-
--0000
1380+
-- 0000
13821381
Content-Disposition: form-data; name="image"; filename="image.jpg"
13831382
Content-Type: image/jpeg
13841383
13851384
BINARYDATA
1386-
--0000--
1385+
-- 0000--
13871386
),
13881387
),
13891388
),

0 commit comments

Comments
 (0)