mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Fix misc directives test cases
This commit is contained in:
parent
36876ff5fb
commit
575314fe59
@ -55,7 +55,7 @@
|
||||
error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
|
||||
},
|
||||
match_file => {
|
||||
"$ENV{DATA_DIR}/ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/,
|
||||
"$ENV{DATA_DIR}/$ENV{RUNASUSER}-ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/,
|
||||
},
|
||||
match_response => {
|
||||
status => qr/^200$/,
|
||||
|
@ -132,6 +132,7 @@ unless (defined $opt{S}) {
|
||||
HTTPD_CONF => $opt{C},
|
||||
HTDOCS => $opt{H},
|
||||
USER_AGENT => $UA_NAME,
|
||||
RUNASUSER => $ENV{USER} || $ENV{LOGNAME} || $ENV{USERNAME} || 'unknown',
|
||||
);
|
||||
|
||||
#dbg("OPTIONS: ", \%opt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user