summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@apache.org>1997-07-31 08:50:02 +0000
committerRalf S. Engelschall <rse@apache.org>1997-07-31 08:50:02 +0000
commit78e5ddbf6752a477694f21ccb1301d97d9da22bf (patch)
tree6a688d4d20b46847e49b7707756e7e5a71c63bd9
parent07034cdf597b58a2d637f48aa85413b746fd3a4d (diff)
downloadhttpd-78e5ddbf6752a477694f21ccb1301d97d9da22bf.tar.gz
handle_else was being used to handle endif.
Submitted by: Howard Fear Reviewed by: Ralf S. Engelschall, Jim Jagielski, Randy Terbush git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78829 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--APACHE_1_2_X/src/CHANGES4
-rw-r--r--APACHE_1_2_X/src/modules/standard/mod_include.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/APACHE_1_2_X/src/CHANGES b/APACHE_1_2_X/src/CHANGES
index d98b4dff82..41e377d4e0 100644
--- a/APACHE_1_2_X/src/CHANGES
+++ b/APACHE_1_2_X/src/CHANGES
@@ -1,5 +1,9 @@
Changes with Apache 1.2.2
+ *) mod_include cleanup showed that handle_else was being used to handle
+ endif. It didn't cause problems, but it was cleaned up too.
+ [Howard Fear]
+
*) Last official synchonisation of mod_rewrite with author version (because
mod_rewrite is now directly developed by the author at the Apache Group):
o added diff between mod_rewrite 3.0.6+ and 3.0.9
diff --git a/APACHE_1_2_X/src/modules/standard/mod_include.c b/APACHE_1_2_X/src/modules/standard/mod_include.c
index 5872333c56..96e38fb472 100644
--- a/APACHE_1_2_X/src/modules/standard/mod_include.c
+++ b/APACHE_1_2_X/src/modules/standard/mod_include.c
@@ -1589,6 +1589,7 @@ int handle_endif(FILE *in, request_rec *r, char *error,
#ifdef DEBUG_INCLUDE
rvputs(r,"**** endif conditional_status=\"", *conditional_status ? "1" : "0", "\"\n", NULL);
#endif
+ *printing = 1;
*conditional_status = 1;
return 0;
} else {
@@ -1704,8 +1705,7 @@ void send_parsed_content(FILE *f, request_rec *r)
continue;
} else if(!strcmp(directive,"endif")) {
if (!if_nesting) {
- ret=handle_else(f, r, error, &conditional_status, &printing);
- printing = 1;
+ ret = handle_endif(f, r, error, &conditional_status, &printing);
} else {
if_nesting--;
}