mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-08 23:32:27 +03:00
Rename placeholder type from RULE_PH_TARGET to RULE_PH_SKIPAFTER.
This commit is contained in:
@@ -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 */
|
/* shallow copy of original rule with placeholder marked as target */
|
||||||
memcpy(phrule, rule, sizeof(msre_rule));
|
memcpy(phrule, rule, sizeof(msre_rule));
|
||||||
phrule->placeholder = RULE_PH_TARGET;
|
phrule->placeholder = RULE_PH_SKIPAFTER;
|
||||||
|
|
||||||
/* Add placeholder. */
|
/* Add placeholder. */
|
||||||
if (msre_ruleset_rule_add(dcfg->ruleset, phrule, phrule->actionset->phase) < 0) {
|
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_MATCH 1
|
||||||
|
|
||||||
#define RULE_PH_NONE 0 /* Not a placeholder */
|
#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 {
|
struct msre_rule {
|
||||||
apr_array_header_t *targets;
|
apr_array_header_t *targets;
|
||||||
|
Reference in New Issue
Block a user