mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 14:46:13 +03:00
Fix return msgs
This commit is contained in:
parent
fdee16ddd8
commit
c4b12060cf
@ -754,7 +754,7 @@ static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, int type,
|
|||||||
#endif
|
#endif
|
||||||
(dcfg->tmp_chain_starter == NULL))
|
(dcfg->tmp_chain_starter == NULL))
|
||||||
if(rule->actionset == NULL)
|
if(rule->actionset == NULL)
|
||||||
return "Rules must have at least id action";
|
return "ModSecurity: Rules must have at least id action";
|
||||||
|
|
||||||
if(rule->actionset != NULL && (dcfg->tmp_chain_starter == NULL)) {
|
if(rule->actionset != NULL && (dcfg->tmp_chain_starter == NULL)) {
|
||||||
if(rule->actionset->id == NOT_SET_P
|
if(rule->actionset->id == NOT_SET_P
|
||||||
@ -762,14 +762,14 @@ static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, int type,
|
|||||||
&& (type != RULE_TYPE_LUA)
|
&& (type != RULE_TYPE_LUA)
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
return "No action id present within the rule";
|
return "ModSecurity: No action id present within the rule";
|
||||||
#if defined(WITH_LUA)
|
#if defined(WITH_LUA)
|
||||||
if(type != RULE_TYPE_LUA)
|
if(type != RULE_TYPE_LUA)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
tmp_rule = msre_ruleset_fetch_rule(dcfg->ruleset, rule->actionset->id, offset);
|
tmp_rule = msre_ruleset_fetch_rule(dcfg->ruleset, rule->actionset->id, offset);
|
||||||
if(tmp_rule != NULL)
|
if(tmp_rule != NULL)
|
||||||
return "Found another rule with the same id";
|
return "ModSecurity: Found another rule with the same id";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user