mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 22:25:45 +03:00
merge upstream & update configs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
|
||||
* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
||||
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
||||
*
|
||||
* You may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
@@ -489,9 +489,27 @@ static apr_status_t msre_action_ver_init(msre_engine *engine,
|
||||
/* severity */
|
||||
|
||||
static apr_status_t msre_action_severity_init(msre_engine *engine,
|
||||
msre_actionset *actionset, msre_action *action)
|
||||
msre_actionset *actionset, msre_action *action)
|
||||
{
|
||||
actionset->severity = atoi(action->param);
|
||||
if (strcasecmp(action->param, "emergency") == 0) {
|
||||
actionset->severity = 0;
|
||||
} else if (strcasecmp(action->param, "alert") == 0) {
|
||||
actionset->severity = 1;
|
||||
} else if (strcasecmp(action->param, "critical") == 0) {
|
||||
actionset->severity = 2;
|
||||
} else if (strcasecmp(action->param, "error") == 0) {
|
||||
actionset->severity = 3;
|
||||
} else if (strcasecmp(action->param, "warning") == 0) {
|
||||
actionset->severity = 4;
|
||||
} else if (strcasecmp(action->param, "notice") == 0) {
|
||||
actionset->severity = 5;
|
||||
} else if (strcasecmp(action->param, "info") == 0) {
|
||||
actionset->severity = 6;
|
||||
} else if (strcasecmp(action->param, "debug") == 0) {
|
||||
actionset->severity = 7;
|
||||
} else {
|
||||
actionset->severity = atoi(action->param);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user