Skip to content

Fixed Action Drop not work #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2013
Merged

Fixed Action Drop not work #35

merged 2 commits into from
Jan 27, 2013

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