summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorColm MacCarthaigh <colm@apache.org>2006-04-19 00:51:55 +0200
committerColm MacCarthaigh <colm@apache.org>2006-04-19 00:51:55 +0200
commitacdbd4f887441f497d65c987144e654708b7b1c0 (patch)
treebea5ad076df53f79c4dc786b65d0711ccae61085 /modules
parentThiago Zaninotti reported to security@apache.org on 20060410 a possible (diff)
downloadapache2-acdbd4f887441f497d65c987144e654708b7b1c0.tar.xz
apache2-acdbd4f887441f497d65c987144e654708b7b1c0.zip
Correctly handle internal redirects, by testing only for r-main == NULL.
ap_is_initial_req() returns false for internal redirects. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395079 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/filters/mod_deflate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c
index 4a9ae9831a..a447ebc5e6 100644
--- a/modules/filters/mod_deflate.c
+++ b/modules/filters/mod_deflate.c
@@ -240,7 +240,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
const char *encoding;
/* only work on main request/no subrequests */
- if (!ap_is_initial_req(r)) {
+ if (r->main != NULL) {
ap_remove_output_filter(f);
return ap_pass_brigade(f->next, bb);
}