mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Rename placeholder type from RULE_PH_TARGET to RULE_PH_SKIPAFTER.
This commit is contained in:
parent
2bf4556cd0
commit
22873995f7
@ -643,7 +643,7 @@ static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, const char *
|
||||
|
||||
/* shallow copy of original rule with placeholder marked as target */
|
||||
memcpy(phrule, rule, sizeof(msre_rule));
|
||||
phrule->placeholder = RULE_PH_TARGET;
|
||||
phrule->placeholder = RULE_PH_SKIPAFTER;
|
||||
|
||||
/* Add placeholder. */
|
||||
if (msre_ruleset_rule_add(dcfg->ruleset, phrule, phrule->actionset->phase) < 0) {
|
||||
|
@ -110,7 +110,7 @@ int DSOLOCAL msre_ruleset_phase_rule_remove_with_exception(msre_ruleset *ruleset
|
||||
#define RULE_MATCH 1
|
||||
|
||||
#define RULE_PH_NONE 0 /* Not a placeholder */
|
||||
#define RULE_PH_TARGET 1 /* Placeholder for skipafter targets */
|
||||
#define RULE_PH_SKIPAFTER 1 /* Placeholder for skipAfter targets */
|
||||
|
||||
struct msre_rule {
|
||||
apr_array_header_t *targets;
|
||||
|
Loading…
x
Reference in New Issue
Block a user