Fix misc directives test cases

This commit is contained in:
Ervin Hegedus 2025-07-28 14:18:15 +02:00
parent 36876ff5fb
commit 575314fe59
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61
2 changed files with 2 additions and 1 deletions

View File

@ -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$/,

View File

@ -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);