httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Tue, 07 Aug 2001 08:02:42 GMT
jwoolley    01/08/07 01:02:42

  Modified:    .        CHANGES
               modules/filters mod_include.c
  Log:
  Fixed an error in ap_ssi_get_tag_and_value().  It was not placing the
  null terminator in the right spot for the tag_val if the value contained
  backslashes.  This caused #if, #elif, and #else expressions with backslashes
  to be incorrectly evaluated.
  
  Revision  Changes    Path
  1.278     +4 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.277
  retrieving revision 1.278
  diff -u -d -u -r1.277 -r1.278
  --- CHANGES	2001/08/07 04:33:58	1.277
  +++ CHANGES	2001/08/07 08:02:41	1.278
  @@ -1,5 +1,9 @@
   Changes with Apache 2.0.23-dev
   
  +  *) Fixed an error in mod_include's directive parsing routines which
  +     caused #if, #elif, and #else expressions containing backslashes
  +     to be improperly evaluated.  [Cliff Woolley]
  +
     *) Introduced new mod_autoindex IndexOptions flags; SuppressIcon to 
        drop the icon column, SuppressRules to drop the <hr> elements, 
        and HTMLTable to create rudimentary HTML table listings (implies 
  
  
  
  1.120     +2 -2      httpd-2.0/modules/filters/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_include.c,v
  retrieving revision 1.119
  retrieving revision 1.120
  diff -u -d -u -r1.119 -r1.120
  --- mod_include.c	2001/08/02 16:35:22	1.119
  +++ mod_include.c	2001/08/07 08:02:42	1.120
  @@ -593,8 +593,8 @@
           }
       }
       
  -    *c++ = '\0'; /* Overwrites delimiter (term or WS) with NULL. */
  -    ctx->curr_tag_pos = c;
  +    *(c-shift_val) = '\0'; /* Overwrites delimiter (term or WS) with NULL. */
  +    ctx->curr_tag_pos = ++c;
       if (dodecode) {
           decodehtml(*tag_val);
       }
  
  
  

Mime
View raw message