httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_negotiation.c
Date Sat, 04 Aug 2001 11:37:13 GMT
trawick     01/08/04 04:37:13

  Modified:    modules/mappers mod_negotiation.c
  Log:
  minimal changes to get it to compile
  
  Revision  Changes    Path
  1.65      +14 -12    httpd-2.0/modules/mappers/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_negotiation.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- mod_negotiation.c	2001/08/04 04:32:58	1.64
  +++ mod_negotiation.c	2001/08/04 11:37:12	1.65
  @@ -988,20 +988,22 @@
            * since the exceptions result is index.foo - this should be
            * fixed as part of a new match-parts logic here.
            */
  -        char *base = apr_array_pstrcat(sub_req->pool, exception_list, '.');
  -        int base_len = strlen(base);
  -        if (base_len > prefix_len 
  +        {
  +            char *base = apr_array_pstrcat(sub_req->pool, exception_list, '.');
  +            int base_len = strlen(base);
  +            if (base_len > prefix_len 
   #ifdef CASE_BLIND_FILESYSTEM
  -            || strncasecmp(base, filp, base_len)
  +                || strncasecmp(base, filp, base_len)
   #else
  -            || strncmp(base, filp, base_len)
  +                || strncmp(base, filp, base_len)
   #endif
  -            || (prefix_len > base_len && filp[base_len] != '.')) {
  -            /* 
  -             * Something you don't know is, something you don't know...
  -             */
  -            ap_destroy_sub_req(sub_req);
  -            continue;
  +                || (prefix_len > base_len && filp[base_len] != '.')) {
  +                /* 
  +                 * Something you don't know is, something you don't know...
  +                 */
  +                ap_destroy_sub_req(sub_req);
  +                continue;
  +            }
           }
   
           /* 
  @@ -1009,7 +1011,7 @@
            * picked up here!  If we failed the subrequest, or don't 
            * know what we are serving, then continue.
            */
  -        if (sub_req->status != HTTP_OK || (!sub_req->content_type) {
  +        if (sub_req->status != HTTP_OK || (!sub_req->content_type)) {
               ap_destroy_sub_req(sub_req);
               continue;
           }
  
  
  

Mime
View raw message