mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-15 16:07:10 +03:00
Accepting sanitiSe and sanitiZe
This commit is contained in:
@@ -604,7 +604,12 @@ static int msre_op_rx_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, c
|
|||||||
/* Are we supposed to capture subexpressions? */
|
/* Are we supposed to capture subexpressions? */
|
||||||
capture = apr_table_get(rule->actionset->actions, "capture") ? 1 : 0;
|
capture = apr_table_get(rule->actionset->actions, "capture") ? 1 : 0;
|
||||||
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
||||||
|
if(!matched_bytes)
|
||||||
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitiseMatchedBytes") ? 1 : 0;
|
||||||
|
|
||||||
matched = apr_table_get(rule->actionset->actions, "sanitizeMatched") ? 1 : 0;
|
matched = apr_table_get(rule->actionset->actions, "sanitizeMatched") ? 1 : 0;
|
||||||
|
if(!matched)
|
||||||
|
matched = apr_table_get(rule->actionset->actions, "sanitiseMatched") ? 1 : 0;
|
||||||
|
|
||||||
/* Show when the regex captures but "capture" is not set */
|
/* Show when the regex captures but "capture" is not set */
|
||||||
if (msr->txcfg->debuglog_level >= 6) {
|
if (msr->txcfg->debuglog_level >= 6) {
|
||||||
@@ -2336,6 +2341,8 @@ static int msre_op_verifyCC_execute(modsec_rec *msr, msre_rule *rule, msre_var *
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
||||||
|
if(!matched_bytes)
|
||||||
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitiseMatchedBytes") ? 1 : 0;
|
||||||
|
|
||||||
if (apr_table_get(rule->actionset->actions, "capture")) {
|
if (apr_table_get(rule->actionset->actions, "capture")) {
|
||||||
for(; i < rc; i++) {
|
for(; i < rc; i++) {
|
||||||
@@ -2616,6 +2623,8 @@ static int msre_op_verifyCPF_execute(modsec_rec *msr, msre_rule *rule, msre_var
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
||||||
|
if(!matched_bytes)
|
||||||
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitiseMatchedBytes") ? 1 : 0;
|
||||||
|
|
||||||
if (apr_table_get(rule->actionset->actions, "capture")) {
|
if (apr_table_get(rule->actionset->actions, "capture")) {
|
||||||
for(; i < rc; i++) {
|
for(; i < rc; i++) {
|
||||||
@@ -2885,6 +2894,8 @@ static int msre_op_verifySSN_execute(modsec_rec *msr, msre_rule *rule, msre_var
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitizeMatchedBytes") ? 1 : 0;
|
||||||
|
if(!matched_bytes)
|
||||||
|
matched_bytes = apr_table_get(rule->actionset->actions, "sanitiseMatchedBytes") ? 1 : 0;
|
||||||
|
|
||||||
if (apr_table_get(rule->actionset->actions, "capture")) {
|
if (apr_table_get(rule->actionset->actions, "capture")) {
|
||||||
for(; i < rc; i++) {
|
for(; i < rc; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user