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 Fri, 05 Apr 2002 07:44:15 GMT
brianp      02/04/04 23:44:15

  Modified:    modules/filters mod_include.c
  Log:
  Fix for the boundary case in which each character of an SSI directive
  is in a separate bucket...the code in send_parsed_content() doesn't
  expect a case where ctx->state==PARSE_DIRECTIVE but ctx->tag_start_buffer
  is NULL.  So in found_start_sequence(), we set ctx->tag_start_buffer
  to point to the next bucket if the end of the <!--# is at the very
  end of the current bucket.
  
  Revision  Changes    Path
  1.219     +7 -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.218
  retrieving revision 1.219
  diff -u -r1.218 -r1.219
  --- mod_include.c	5 Apr 2002 07:03:07 -0000	1.218
  +++ mod_include.c	5 Apr 2002 07:44:14 -0000	1.219
  @@ -327,10 +327,16 @@
       ctx->tag_length = 0;
       ctx->parse_pos = 0;
   
  -    /* Don't set tag_start_bucket if tagStart indexes the end of the bucket. */
  +    /* If tagStart indexes the end of the bucket, then tag_start_bucket
  +     * should be the next bucket
  +     */
       if (tagStart < len) {
           ctx->tag_start_bucket = dptr;
           ctx->tag_start_index = tagStart;
  +    }
  +    else {
  +        ctx->tag_start_bucket = APR_BUCKET_NEXT(dptr);
  +        ctx->tag_start_index = 0;
       }
   
       if (ctx->head_start_index > 0) {
  
  
  

Mime
View raw message