mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix return msgs
This commit is contained in:
parent
5f6985183e
commit
4460061d2f
@ -754,7 +754,7 @@ static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, int type,
|
||||
#endif
|
||||
(dcfg->tmp_chain_starter == 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->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)
|
||||
#endif
|
||||
)
|
||||
return "No action id present within the rule";
|
||||
return "ModSecurity: No action id present within the rule";
|
||||
#if defined(WITH_LUA)
|
||||
if(type != RULE_TYPE_LUA)
|
||||
#endif
|
||||
{
|
||||
tmp_rule = msre_ruleset_fetch_rule(dcfg->ruleset, rule->actionset->id, offset);
|
||||
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