mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Replace TABs with 4 spaces.
This commit is contained in:
@@ -679,7 +679,7 @@ static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, int type,
|
|||||||
if ((rule->actionset->id != NULL) && apr_table_get(dcfg->tmp_rule_placeholders, rule->actionset->id)) {
|
if ((rule->actionset->id != NULL) && apr_table_get(dcfg->tmp_rule_placeholders, rule->actionset->id)) {
|
||||||
msre_rule *phrule = apr_palloc(rule->ruleset->mp, sizeof(msre_rule));
|
msre_rule *phrule = apr_palloc(rule->ruleset->mp, sizeof(msre_rule));
|
||||||
if (phrule == NULL) {
|
if (phrule == NULL) {
|
||||||
return FATAL_ERROR;
|
return FATAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_CONF
|
#ifdef DEBUG_CONF
|
||||||
|
@@ -713,12 +713,12 @@ static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp,
|
|||||||
msr->txcfg->is_enabled = MODSEC_ENABLED;
|
msr->txcfg->is_enabled = MODSEC_ENABLED;
|
||||||
msr->usercfg->is_enabled = MODSEC_ENABLED;
|
msr->usercfg->is_enabled = MODSEC_ENABLED;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcasecmp(value, "off") == 0) {
|
if (strcasecmp(value, "off") == 0) {
|
||||||
msr->txcfg->is_enabled = MODSEC_DISABLED;
|
msr->txcfg->is_enabled = MODSEC_DISABLED;
|
||||||
msr->usercfg->is_enabled = MODSEC_DISABLED;
|
msr->usercfg->is_enabled = MODSEC_DISABLED;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcasecmp(value, "detectiononly") == 0) {
|
if (strcasecmp(value, "detectiononly") == 0) {
|
||||||
msr->txcfg->is_enabled = MODSEC_DETECTION_ONLY;
|
msr->txcfg->is_enabled = MODSEC_DETECTION_ONLY;
|
||||||
msr->usercfg->is_enabled = MODSEC_DETECTION_ONLY;
|
msr->usercfg->is_enabled = MODSEC_DETECTION_ONLY;
|
||||||
@@ -761,12 +761,12 @@ static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp,
|
|||||||
msr->txcfg->auditlog_flag = AUDITLOG_ON;
|
msr->txcfg->auditlog_flag = AUDITLOG_ON;
|
||||||
msr->usercfg->auditlog_flag = AUDITLOG_ON;
|
msr->usercfg->auditlog_flag = AUDITLOG_ON;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcasecmp(value, "off") == 0) {
|
if (strcasecmp(value, "off") == 0) {
|
||||||
msr->txcfg->auditlog_flag = AUDITLOG_OFF;
|
msr->txcfg->auditlog_flag = AUDITLOG_OFF;
|
||||||
msr->usercfg->auditlog_flag = AUDITLOG_OFF;
|
msr->usercfg->auditlog_flag = AUDITLOG_OFF;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcasecmp(value, "relevantonly") == 0) {
|
if (strcasecmp(value, "relevantonly") == 0) {
|
||||||
msr->txcfg->auditlog_flag = AUDITLOG_RELEVANT;
|
msr->txcfg->auditlog_flag = AUDITLOG_RELEVANT;
|
||||||
msr->usercfg->auditlog_flag = AUDITLOG_RELEVANT;
|
msr->usercfg->auditlog_flag = AUDITLOG_RELEVANT;
|
||||||
|
@@ -1125,7 +1125,7 @@ static int msre_op_geoLookup_execute(modsec_rec *msr, msre_rule *rule, msre_var
|
|||||||
|
|
||||||
rc = geo_lookup(msr, &rec, geo_host, error_msg);
|
rc = geo_lookup(msr, &rec, geo_host, error_msg);
|
||||||
if (rc <= 0) {
|
if (rc <= 0) {
|
||||||
*error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" failed at %s.", log_escape_nq(msr->mp, geo_host), var->name);
|
*error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" failed at %s.", log_escape_nq(msr->mp, geo_host), var->name);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
*error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" succeeded at %s.",
|
*error_msg = apr_psprintf(msr->mp, "Geo lookup for \"%s\" succeeded at %s.",
|
||||||
|
Reference in New Issue
Block a user