httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@hyperreal.org
Subject cvs commit: apache-1.3/src/main http_request.c
Date Thu, 26 Mar 1998 14:06:49 GMT
martin      98/03/26 06:06:49

  Modified:    src/main http_request.c
  Log:
  Don't refuse to serve if %2F occurs in the query part only,
  or in a proxy request (this shouldn't return a 404 anyway, but a 400)
  
  Revision  Changes    Path
  1.114     +7 -4      apache-1.3/src/main/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_request.c,v
  retrieving revision 1.113
  retrieving revision 1.114
  diff -u -u -r1.113 -r1.114
  --- http_request.c	1998/03/17 07:54:22	1.113
  +++ http_request.c	1998/03/26 14:06:48	1.114
  @@ -1020,10 +1020,13 @@
           return;
       }
   
  -    access_status = unescape_url(r->uri);
  -    if (access_status) {
  -	die(access_status, r);
  -	return;
  +    /* Ignore embedded %2F's in path for proxy requests */
  +    if (!r->proxyreq && r->parsed_uri.path) {
  +	access_status = unescape_url(r->parsed_uri.path);
  +	if (access_status) {
  +	    die(access_status, r);
  +	    return;
  +	}
       }
   
       getparents(r->uri);     /* OK --- shrinking transformations... */
  
  
  

Mime
View raw message