mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Cleanup building actionsets and use minimal default. See #445.
Fully resolve all rules before logging.
This commit is contained in:
@@ -645,7 +645,7 @@ msre_actionset *msre_actionset_merge(msre_engine *engine, msre_actionset *parent
|
||||
msre_actionset *msre_actionset_create_default(msre_engine *engine) {
|
||||
char *my_error_msg = NULL;
|
||||
return msre_actionset_create(engine,
|
||||
"log,auditlog,deny,status:403,phase:2",
|
||||
"phase:2,log,pass",
|
||||
&my_error_msg);
|
||||
}
|
||||
|
||||
@@ -677,7 +677,7 @@ void msre_actionset_set_defaults(msre_actionset *actionset) {
|
||||
if (actionset->intercept_pause == NOT_SET) actionset->intercept_pause = 0;
|
||||
|
||||
/* Other */
|
||||
if (actionset->auditlog == NOT_SET) actionset->auditlog = 1;
|
||||
if (actionset->auditlog == NOT_SET) actionset->auditlog = 0;
|
||||
if (actionset->log == NOT_SET) actionset->log = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user