"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/regression/config/10-request-directives.t" between
modsecurity-2.9.6.tar.gz and modsecurity-2.9.7.tar.gz

About: ModSecurity is an intrusion detection and prevention module (web application firewall) for the Apache (and Nginx) Web servers.

10-request-directives.t  (modsecurity-2.9.6):10-request-directives.t  (modsecurity-2.9.7)
skipping to change at line 700 skipping to change at line 700
status => qr/^200$/, status => qr/^200$/,
}, },
request => new HTTP::Request( request => new HTTP::Request(
GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt", GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
[ [
"Cookie" => q($Version="1"; SESSIONID="cookieval"; $PATH= "/"), "Cookie" => q($Version="1"; SESSIONID="cookieval"; $PATH= "/"),
], ],
undef, undef,
), ),
}, },
# SecArgumentsLimit
{
type => "config",
comment => "SecArgumentsLimit (pos)",
conf => qq(
SecRuleEngine On
SecRequestBodyAccess On
SecArgumentsLimit 5
SecRule REQBODY_ERROR "!\@eq 0" "id:'500232',phase:2,log,deny,sta
tus:403,msg:'Failed to parse request body'"
),
match_log => {
error => [ qr/Access denied with code 403 /, 1 ],
},
match_response => {
status => qr/^403$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
[
"Content-Type" => "application/x-www-form-urlencoded",
],
"a=1&b=2&c=3&d=4&e=5&f=6",
),
},
{
type => "config",
comment => "SecArgumentsLimit (neg)",
conf => qq(
SecRuleEngine On
SecRequestBodyAccess On
SecArgumentsLimit 5
SecRule REQBODY_ERROR "!\@eq 0" "id:'500233',phase:2,log,deny,sta
tus:403,msg:'Failed to parse request body'"
),
match_log => {
},
match_response => {
status => qr/^200$/,
},
request => new HTTP::Request(
POST => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
[
"Content-Type" => "application/x-www-form-urlencoded",
],
"a=1&b=2&c=3&d=4&e=5",
),
},
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)