mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetics: fix #1400 indentation and help message
This commit is contained in:
@@ -1278,7 +1278,7 @@ void sec_audit_logger_json(modsec_rec *msr) {
|
|||||||
yajl_gen_map_close(g); // sanitized args map is finished
|
yajl_gen_map_close(g); // sanitized args map is finished
|
||||||
}
|
}
|
||||||
#ifdef LOG_NO_SERVER_CONTEXT
|
#ifdef LOG_NO_SERVER_CONTEXT
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Web application info. */
|
/* Web application info. */
|
||||||
@@ -2100,10 +2100,10 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef LOG_NO_SERVER_CONTEXT
|
#ifdef LOG_NO_SERVER_CONTEXT
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Web application info. */
|
/* Web application info. */
|
||||||
if ( ((msr->txcfg->webappid != NULL)&&(strcmp(msr->txcfg->webappid, "default") != 0))
|
if ( ((msr->txcfg->webappid != NULL)&&(strcmp(msr->txcfg->webappid, "default") != 0))
|
||||||
|| (msr->sessionid != NULL) || (msr->userid != NULL))
|
|| (msr->sessionid != NULL) || (msr->userid != NULL))
|
||||||
{
|
{
|
||||||
|
@@ -520,7 +520,7 @@ AC_ARG_ENABLE(stopwatch-logging,
|
|||||||
# Disable logging of server context
|
# Disable logging of server context
|
||||||
AC_ARG_ENABLE(server-context-logging,
|
AC_ARG_ENABLE(server-context-logging,
|
||||||
AS_HELP_STRING([--enable-server-context-logging],
|
AS_HELP_STRING([--enable-server-context-logging],
|
||||||
[Enable logging of server info (log producer, sanitized objects, ...) in audit log when log level < 9. This is the default]),
|
[Enable logging of server info (log producer, sanitized objects, ...) in audit log even when log level < 9. This is the default]),
|
||||||
[
|
[
|
||||||
if test "$enableval" != "no"; then
|
if test "$enableval" != "no"; then
|
||||||
log_server_context=
|
log_server_context=
|
||||||
|
Reference in New Issue
Block a user