Changeset 2035

Show
Ignore:
Timestamp:
01/16/2008 12:26:12 AM (8 months ago)
Author:
glen
Message:

- fix also scgi and proxy modules. #1489

Location:
branches/lighttpd-1.4.x
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/NEWS

    r2034 r2035  
    1111  * fixed case-sensitive check for Auth-Method (#1456) 
    1212  * execute fcgi app without /bin/sh if used as argument to spawn-fcgi (#1428) 
    13   * fixed a bug that made /-prefixed fcgi extensions being handled also when 
    14     matching the end of the uri (#1489) 
     13  * fixed a bug that made /-prefixed extensions being handled also when 
     14    matching the end of the uri in fcgi,scgi and proxy modules (#1489) 
    1515  * Print error if X-LIGHTTPD-send-file cannot be done; reset header 
    1616    Content-Length for send-file. Patches by Stefan B� 
  • branches/lighttpd-1.4.x/src/mod_proxy.c

    r1932 r2035  
    10941094 
    10951095                /* check extension in the form "/proxy_pattern" */ 
    1096                 if (*(extension->key->ptr) == '/' && strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) { 
    1097                         if (s_len > ct_len + 1) { 
    1098                                 char *pi_offset; 
    1099  
    1100                                 if (0 != (pi_offset = strchr(fn->ptr + ct_len + 1, '/'))) { 
    1101                                         path_info_offset = pi_offset - fn->ptr; 
     1096                if (*(extension->key->ptr) == '/') { 
     1097                        if (strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) { 
     1098                                if (s_len > ct_len + 1) { 
     1099                                        char *pi_offset; 
     1100 
     1101                                        if (0 != (pi_offset = strchr(fn->ptr + ct_len + 1, '/'))) { 
     1102                                                path_info_offset = pi_offset - fn->ptr; 
     1103                                        } 
    11021104                                } 
    1103                         } 
    1104                         break; 
     1105                                break; 
     1106                        } 
    11051107                } else if (0 == strncmp(fn->ptr + s_len - ct_len, extension->key->ptr, ct_len)) { 
    11061108                        /* check extension in the form ".fcg" */ 
  • branches/lighttpd-1.4.x/src/mod_scgi.c

    r1951 r2035  
    26952695 
    26962696                /* check extension in the form "/scgi_pattern" */ 
    2697                 if (*(extension->key->ptr) == '/' && strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) { 
    2698                         break; 
     2697                if (*(extension->key->ptr) == '/') { 
     2698                        if (strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) 
     2699                                break; 
    26992700                } else if (0 == strncmp(fn->ptr + s_len - ct_len, extension->key->ptr, ct_len)) { 
    27002701                        /* check extension in the form ".fcg" */