]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
handle_else was being used to handle endif.
authorRalf S. Engelschall <rse@apache.org>
Thu, 31 Jul 1997 08:50:02 +0000 (08:50 +0000)
committerRalf S. Engelschall <rse@apache.org>
Thu, 31 Jul 1997 08:50:02 +0000 (08:50 +0000)
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

APACHE_1_2_X/src/CHANGES
APACHE_1_2_X/src/modules/standard/mod_include.c

index d98b4dff8233663eb60c54c852bb8cef6c605b6d..41e377d4e0779a937aa487b01ef14c1588e01637 100644 (file)
@@ -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
index 5872333c563f6b7be90d15ad91d0d29fc777be42..96e38fb4725598a70fd64c07da316ed2086e17b2 100644 (file)
@@ -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--;
                 }