mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fixed MODSEC-2 by using the msr->hostname (ap_get_server_name(r)) vs r->hostname in the log.
This commit is contained in:
parent
20cc395510
commit
deb6a816b4
@ -286,7 +286,7 @@ void internal_log(request_rec *r, directory_config *dcfg, modsec_rec *msr,
|
||||
/* Send message levels 1-3 to the Apache error log too. */
|
||||
if (level <= 3) {
|
||||
char *unique_id = (char *)get_env_var(r, "UNIQUE_ID");
|
||||
char *hostname = (char *)r->hostname;
|
||||
char *hostname = (char *)msr->hostname;
|
||||
|
||||
if (unique_id != NULL) {
|
||||
unique_id = apr_psprintf(msr->mp, " [unique_id \"%s\"]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user