mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Allow mod_proxy's "nocanon" behavior to be specified in proxy actions.
This commit is contained in:
committed by
Felipe Zimmerle
parent
258e5545a2
commit
e3b3721ee3
@@ -664,7 +664,12 @@ static apr_status_t msre_action_proxy_execute(modsec_rec *msr, apr_pool_t *mptmp
|
||||
|
||||
var = apr_pcalloc(mptmp, sizeof(msc_string));
|
||||
if (var == NULL) return -1;
|
||||
var->value = (char *)action->param;
|
||||
if (!strncmp(action->param,"[nocanon]",9)) {
|
||||
apr_table_setn(msr->r->notes,"proxy-nocanon",1);
|
||||
var->value = (char *)action->param+9;
|
||||
} else {
|
||||
var->value = (char *)action->param;
|
||||
}
|
||||
var->value_len = strlen(var->value);
|
||||
expand_macros(msr, var, rule, mptmp);
|
||||
|
||||
|
Reference in New Issue
Block a user