You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2002/10/25 18:27:38 UTC

cvs commit: httpd-2.0/server request.c

coar        2002/10/25 09:27:38

  Modified:    .        CHANGES
               server   request.c
  Log:
  more info is better than less..
  
  Revision  Changes    Path
  1.963     +4 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.962
  retrieving revision 1.963
  diff -u -u -r1.962 -r1.963
  --- CHANGES	25 Oct 2002 15:18:53 -0000	1.962
  +++ CHANGES	25 Oct 2002 16:27:37 -0000	1.963
  @@ -1,5 +1,9 @@
   Changes with Apache 2.0.44
   
  +  *) Emit a message to the error log when we return 404 because
  +     the URI contained '%2f'.  (This was previously nastily silent
  +     and difficult to debug.)  [Ken Coar]
  +
     *) Fix streaming output from an nph- CGI script.  CGI:IRC now
        works.  PR 8482  [Jeff Trawick]
   
  
  
  
  1.116     +6 -0      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.115
  retrieving revision 1.116
  diff -u -u -r1.115 -r1.116
  --- request.c	5 Sep 2002 06:59:14 -0000	1.115
  +++ request.c	25 Oct 2002 16:27:38 -0000	1.116
  @@ -149,6 +149,12 @@
       if (!r->proxyreq && r->parsed_uri.path) {
           access_status = ap_unescape_url(r->parsed_uri.path);
           if (access_status) {
  +            if (access_status == HTTP_NOT_FOUND) {
  +                ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
  +                              "found %2f (encoded '/') in URI "
  +                              "(decoded='%s'), returning 404"
  +                              r->parsed_uri.path);
  +            }
               return access_status;
           }
       }
  
  
  

Re: cvs commit: httpd-2.0/server request.c

Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
Jeff Trawick wrote:
> 
> I'm very surprised that the first % in your format string
> doesn't need to be escaped.

right.  the missing comma was due to a stray keystroke exiting
the editor.  the missing '%'.. i'm not sure how that happened.
fixed, anyway.
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"

Re: cvs commit: httpd-2.0/server request.c

Posted by Jeff Trawick <tr...@attglobal.net>.
coar@apache.org writes:

>   Index: request.c
>   ===================================================================
>   RCS file: /home/cvs/httpd-2.0/server/request.c,v
>   retrieving revision 1.115
>   retrieving revision 1.116
>   diff -u -u -r1.115 -r1.116
>   --- request.c	5 Sep 2002 06:59:14 -0000	1.115
>   +++ request.c	25 Oct 2002 16:27:38 -0000	1.116
>   @@ -149,6 +149,12 @@
>        if (!r->proxyreq && r->parsed_uri.path) {
>            access_status = ap_unescape_url(r->parsed_uri.path);
>            if (access_status) {
>   +            if (access_status == HTTP_NOT_FOUND) {
>   +                ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
>   +                              "found %2f (encoded '/') in URI "
>   +                              "(decoded='%s'), returning 404"
>   +                              r->parsed_uri.path);
>   +            }

I'm very surprised that the first % in your format string doesn't
need to be escaped.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Re: cvs commit: httpd-2.0/server request.c

Posted by Jeff Trawick <tr...@attglobal.net>.
coar@apache.org writes:

>   Index: request.c
>   ===================================================================
>   RCS file: /home/cvs/httpd-2.0/server/request.c,v
>   retrieving revision 1.115
>   retrieving revision 1.116
>   diff -u -u -r1.115 -r1.116
>   --- request.c	5 Sep 2002 06:59:14 -0000	1.115
>   +++ request.c	25 Oct 2002 16:27:38 -0000	1.116
>   @@ -149,6 +149,12 @@
>        if (!r->proxyreq && r->parsed_uri.path) {
>            access_status = ap_unescape_url(r->parsed_uri.path);
>            if (access_status) {
>   +            if (access_status == HTTP_NOT_FOUND) {
>   +                ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r,
>   +                              "found %2f (encoded '/') in URI "
>   +                              "(decoded='%s'), returning 404"
>   +                              r->parsed_uri.path);
>   +            }

I'm very surprised that the first % in your format string doesn't
need to be escaped.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...