mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
MODSEC-272
This commit is contained in:
@@ -2235,8 +2235,7 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
mvar->value = apr_pmemdup(msr->mp, var->value, var->value_len);
|
||||
mvar->value_len = var->value_len;
|
||||
|
||||
apr_table_unset(msr->matched_vars, parm);
|
||||
apr_table_setn(msr->matched_vars, parm, (void *)mvar);
|
||||
apr_table_addn(msr->matched_vars, parm, (void *)mvar);
|
||||
|
||||
} else {
|
||||
|
||||
@@ -2246,8 +2245,7 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
mvar->value = apr_pmemdup(msr->mp, var->value, var->value_len);
|
||||
mvar->value_len = var->value_len;
|
||||
|
||||
apr_table_unset(msr->matched_vars, mvar->name);
|
||||
apr_table_setn(msr->matched_vars, mvar->name, (void *)mvar);
|
||||
apr_table_addn(msr->matched_vars, mvar->name, (void *)mvar);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user