Skip to content

Conversation

chaizhenhua
Copy link
Contributor

No description provided.

brenosilva added a commit that referenced this pull request Jan 27, 2013
@brenosilva brenosilva merged commit b3418be into owasp-modsecurity:remotes/trunk Jan 27, 2013
@brenosilva
Copy link
Contributor

Looks like drop and deny is working for request phase. Just need to fix for response body now.

Thanks

Breno

@brenosilva
Copy link
Contributor

Just added this:

modsecProcessResponse() {
...
        status = ap_pass_brigade(r->output_filters, bb);
+        if(status > 0)  {
+               if(msr->intercept_actionset->intercept_status != 0)
+                status =  msr->intercept_actionset->intercept_status;
        }
        ap_remove_output_filter(f);
        return status;
    }

And deny in response body is working. What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants