mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Revert to apr_psprintf (vs apr_pstrcat) to get around what appears to be an apr bug with FC4.
This commit is contained in:
parent
9d4965b29e
commit
dc71842cee
@ -1295,7 +1295,9 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
var->name, var->param);
|
||||
}
|
||||
else if ((var->name != NULL) && var->is_counting && (*var->name != '&')) {
|
||||
full_varname = apr_pstrcat(mptmp, "&", var->name);
|
||||
// TODO: This fails (sigsegv) on FC4, but apr_psprintf works
|
||||
//full_varname = apr_pstrcat(mptmp, "&", var->name);
|
||||
full_varname = apr_psprintf(mptmp, "&%s", var->name);
|
||||
}
|
||||
else {
|
||||
full_varname = var->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user