httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@ast.cam.ac.uk (David Robinson)
Subject Re: REPOST: URL decoding bugs in apache 0.8.3
Date Fri, 28 Jul 1995 10:54:00 GMT
>(Incidentally, it doesn't seem to fix your bugs 1&2 (PATH_TRANSLATED
>(bleah) and internal_redirect.  A separate patch for these would be
>very helpful, if you could make one up).

Here they are.

 David.

------------------------ PATH_TRANSLATED patch
*** mod_cgi.c.orig	Wed Jul 19 01:38:43 1995
--- mod_cgi.c	Fri Jul 28 10:46:44 1995
***************
*** 190,196 ****
      }
  	
      if (r->path_info && r->path_info[0]) {
! 	request_rec *pa_req = sub_req_lookup_uri (r->path_info, r);
        
          table_set (e, "PATH_INFO", r->path_info);
  
--- 190,201 ----
      }
  	
      if (r->path_info && r->path_info[0]) {
! /*
!  * To get PATH_TRANSLATED, treat PATH_INFO as a URI path. Need to re-escape
!  * it for this.
!  */
! 	request_rec *pa_req = sub_req_lookup_uri(
! 				    escape_uri(r->pool, r->path_info), r);
        
          table_set (e, "PATH_INFO", r->path_info);
  
------------------------ end PATH_TRANSLATED patch

------------------------ internal redirect patch
*** http_request.c.orig2	Thu Jul 27 15:42:29 1995
--- http_request.c	Fri Jul 28 10:41:05 1995
***************
*** 611,619 ****
      new->prev = r;
      r->next = new;
      
-     unescape_url(new->uri);
-     getparents (new->uri);
-     
      /* We are redirecting.  Treat the internally generated transaction
       * as a GET, since there is not a chance of its getting POST-style
       * arguments.   
--- 611,616 ----
------------------------ end redirect patch

Mime
View raw message