httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject [PATCH] SSI handling of braces fix
Date Sat, 08 Feb 1997 16:30:06 GMT
>   * escaping '{''s in SSI has changed.  Bug?
>     Message-ID: <Pine.BSF.3.91.970203113400.925C-100000@localhost.imdb.com>

This (untested) patch should fix the problem:

Index: mod_include.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_include.c,v
retrieving revision 1.21
diff -c -r1.21 mod_include.c
*** mod_include.c       1997/01/20 04:28:13     1.21
--- mod_include.c       1997/02/08 17:40:00
***************
*** 372,378 ****
                  if (braces == 1) {
                      if (*in == '}') break;
                  }
!                 if (! (isalpha((int)*in) || (*in == '_') || isdigit((int)*in))
 ) break;
                  if (vtlen < (MAX_STRING_LEN - 1)) vtext[vtlen++] = *in;
                  var[vlen++] = *in++;
              }
--- 372,378 ----
                  if (braces == 1) {
                      if (*in == '}') break;
                  }
!                 else if (! (isalpha((int)*in) || (*in == '_') || isdigit((int)
*in)) ) break;
                  if (vtlen < (MAX_STRING_LEN - 1)) vtext[vtlen++] = *in;
                  var[vlen++] = *in++;
              }

Cheers,

Ben.

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message