httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_include.c
Date Thu, 28 Mar 2002 01:19:58 GMT
brianp      02/03/27 17:19:58

  Modified:    modules/filters mod_include.c
  Log:
  Don't walk past the end of the tag in ap_ssi_get_tag_and_value()
  Discovered by: Cliff Woolley
  
  Revision  Changes    Path
  1.207     +4 -1      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.206
  retrieving revision 1.207
  diff -u -r1.206 -r1.207
  --- mod_include.c	28 Mar 2002 01:05:24 -0000	1.206
  +++ mod_include.c	28 Mar 2002 01:19:58 -0000	1.207
  @@ -957,7 +957,10 @@
       }
       
       *(c-shift_val) = '\0'; /* Overwrites delimiter (term or WS) with NULL. */
  -    ctx->curr_tag_pos = ++c;
  +    if (*c) {
  +        ++c;
  +    }
  +    ctx->curr_tag_pos = c;
       if (dodecode) {
           decodehtml(*tag_val);
       }
  
  
  

Mime
View raw message