httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Fear <...@pooh.pageplus.com>
Subject small xssi problem
Date Wed, 04 Dec 1996 06:38:39 GMT
I had a small xssi problem reported against against the 1.1 version
of mod_xinclude which also needs to be fixed in 1.2.  The omission
causes xssi variables to not be parsed in a <!--#config errfmt -->
directive.  The patch follows.

--
Howard Fear      email1: howard_fear@pageplus.com
                 email2: howard_fear@redcape.com
                 http://www.pageplus.com/~hsf/

*** mod_include.c	Sun Dec  1 13:29:05 1996
--- mod_include.c.new	Tue Dec  3 23:31:53 1996
***************
*** 664,672 ****
      while(1) {
          if(!(tag_val = get_tag(r->pool, in, tag, MAX_STRING_LEN, 0)))
              return 1;
!         if(!strcmp(tag,"errmsg"))
!             strcpy(error,tag_val);
!         else if(!strcmp(tag,"timefmt")) {
    	    time_t date = r->request_time;
              parse_string(r, tag_val, parsed_string, MAX_STRING_LEN);
              strcpy(tf,parsed_string);
--- 664,673 ----
      while(1) {
          if(!(tag_val = get_tag(r->pool, in, tag, MAX_STRING_LEN, 0)))
              return 1;
!         if(!strcmp(tag,"errmsg")) {
!             parse_string(r, tag_val, parsed_string, MAX_STRING_LEN);
!             strcpy(error,parsed_string);
!         } else if(!strcmp(tag,"timefmt")) {
    	    time_t date = r->request_time;
              parse_string(r, tag_val, parsed_string, MAX_STRING_LEN);
              strcpy(tf,parsed_string);

Mime
View raw message