mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 15:07:10 +03:00
Moved output filter to run before other stock filters (MODSEC-89).
This commit is contained in:
8
CHANGES
8
CHANGES
@@ -1,3 +1,11 @@
|
||||
02 Nov 2009 - 2.5.11
|
||||
--------------------
|
||||
|
||||
* Moved output filter to run before other stock filters (mod_deflate,
|
||||
mod_cache, mod_expires, mod_filter) to avoid analyzing modified data
|
||||
in the response. Patch originally submitted by Ivan Ristic.
|
||||
|
||||
|
||||
18 Sep 2009 - 2.5.10
|
||||
--------------------
|
||||
|
||||
|
||||
@@ -1126,8 +1126,18 @@ static void register_hooks(apr_pool_t *mp) {
|
||||
|
||||
ap_register_input_filter("MODSECURITY_IN", input_filter,
|
||||
NULL, AP_FTYPE_CONTENT_SET);
|
||||
|
||||
/* Ensure that the output filter runs before other modules so that
|
||||
* we get a request that has a better chance of not being modified:
|
||||
*
|
||||
* Currently:
|
||||
* mod_expires = -2
|
||||
* mod_cache = -1
|
||||
* mod_deflate = -1
|
||||
* mod_headers = 0
|
||||
*/
|
||||
ap_register_output_filter("MODSECURITY_OUT", output_filter,
|
||||
NULL, AP_FTYPE_CONTENT_SET);
|
||||
NULL, AP_FTYPE_CONTENT_SET - 3);
|
||||
|
||||
ap_register_output_filter("PDFP_OUT", pdfp_output_filter,
|
||||
NULL, AP_FTYPE_CONTENT_SET);
|
||||
|
||||
Reference in New Issue
Block a user