mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
change return code at rsub
This commit is contained in:
@@ -686,7 +686,7 @@ static int msre_op_rsub_execute(modsec_rec *msr, msre_rule *rule, msre_var *var,
|
|||||||
|
|
||||||
if(rule->sub_regex == NULL) {
|
if(rule->sub_regex == NULL) {
|
||||||
*error_msg = "Internal Error: regex data is null.";
|
*error_msg = "Internal Error: regex data is null.";
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
str->value = apr_pstrndup(msr->mp, rule->sub_str, strlen(rule->sub_str));
|
str->value = apr_pstrndup(msr->mp, rule->sub_str, strlen(rule->sub_str));
|
||||||
|
Reference in New Issue
Block a user