From: Brian Pane Date: Sat, 15 Jun 2002 05:41:48 +0000 (+0000) Subject: Fixed a bug in the handling of nested if-statements in shtml files X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=730890d48ae2be5788855e3193848f1acf8defbd;p=apache Fixed a bug in the handling of nested if-statements in shtml files PR: 9866 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95687 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 75ea893de7..d2d8665d31 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.38 + *) Fixed the handling of nested if-statements in shtml files. + PR 9866 [Brian Pane] + *) Allow 'make install DESTDIR=/path'. This allows packagers to install into a directory different from the one that was configured. This also mirrors the root= feature from 1.3. We cannot use prefix=, diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 311c61e64a..3c208efcb3 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -2579,7 +2579,7 @@ static int handle_if(include_ctx_t *ctx, apr_bucket_brigade **bb, char debug_buf[MAX_DEBUG_SIZE]; *inserted_head = NULL; - if (!ctx->flags & FLAG_PRINTING) { + if (!(ctx->flags & FLAG_PRINTING)) { ctx->if_nesting_level++; } else {