Skip to content

Fixed Action Drop not work - #35

Merged
brenosilva merged 2 commits into
owasp-modsecurity:remotes/trunkfrom
chaizhenhua:remotes/trunk
Jan 27, 2013
Merged

brenosilva merged 2 commits into
owasp-modsecurity:remotes/trunkfrom
chaizhenhua:remotes/trunk

Conversation

@chaizhenhua

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Thanks

Breno

@brenosilva

Copy link
Copy Markdown
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