mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
[MODSEC-386] Added error msg for update target by id function
This commit is contained in:
@@ -1958,6 +1958,10 @@ static const char *cmd_rule_update_target_by_id(cmd_parms *cmd, void *_dcfg,
|
||||
/* TODO: Validate the range here, while we can still tell the user if it's invalid */
|
||||
re->param = p1;
|
||||
|
||||
if(dcfg->ruleset == NULL) {
|
||||
return apr_psprintf(cmd->pool, "Updating target by ID with no ruleset in this context");
|
||||
}
|
||||
|
||||
return msre_ruleset_rule_update_target_matching_exception(NULL, dcfg->ruleset, re, p2, p3);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user