mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Merge branch 'v2/master' into v2/mst/nullcheck2
This commit is contained in:
@@ -187,9 +187,9 @@ int expand_macros(modsec_rec *msr, msc_string *var, msre_rule *rule, apr_pool_t
|
||||
* no macros in the input data.
|
||||
*/
|
||||
|
||||
data = var->value;
|
||||
data = apr_pstrdup(mptmp, var->value); /* IMP1 Are we modifying data anywhere? */
|
||||
arr = apr_array_make(mptmp, 16, sizeof(msc_string *));
|
||||
if (arr == NULL) return -1;
|
||||
if ((data == NULL)||(arr == NULL)) return -1;
|
||||
|
||||
text_start = next_text_start = data;
|
||||
do {
|
||||
|
Reference in New Issue
Block a user