mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Adds missing 'ModSecurity:' prefix to log messages
As reported by Walter Hop, the status call functionality was printing a message in the console without the expected 'ModSecurity:' prefix. SecServerSignature was also printing messages without the expected prefix. Both are fixed by this commit.
This commit is contained in:
parent
ce4cf24f6e
commit
fe22446bdd
@ -748,7 +748,8 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
|
|||||||
/* If we've changed the server signature make note of the original. */
|
/* If we've changed the server signature make note of the original. */
|
||||||
if (new_server_signature != NULL) {
|
if (new_server_signature != NULL) {
|
||||||
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
|
ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s,
|
||||||
"Original server signature: %s", real_server_signature);
|
"ModSecurity: Original server signature: %s",
|
||||||
|
real_server_signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
@ -757,8 +758,8 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
|
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL,
|
||||||
"Status engine is currently disabled, enable it by set " \
|
"ModSecurity: Status engine is currently disabled, enable " \
|
||||||
"SecStatusEngine to On.");
|
"it by set SecStatusEngine to On.");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user