Changeset 2030

Show
Ignore:
Timestamp:
01/15/2008 11:20:23 PM (8 months ago)
Author:
glen
Message:

- fixed a bug that made /-prefixed fcgi extensions being handled also when matching the end of the uri (#1489)

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

Legend:

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

    r2026 r2030  
    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) 
    1315 
    1416- 1.4.18 - 2007-09-09 
  • branches/lighttpd-1.4.x/src/mod_fastcgi.c

    r1993 r2030  
    34573457 
    34583458                        /* check extension in the form "/fcgi_pattern" */ 
    3459                         if (*(extension->key->ptr) == '/' && strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) { 
    3460                                 break; 
     3459                        if (*(extension->key->ptr) == '/') { 
     3460                                if (strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) 
     3461                                        break; 
    34613462                        } else if (0 == strncmp(fn->ptr + s_len - ct_len, extension->key->ptr, ct_len)) { 
    34623463                                /* check extension in the form ".fcg" */ 
     
    34743475                host = extension->hosts[k]; 
    34753476 
    3476                 /* we should have at least one proc that can do somthing */ 
     3477                /* we should have at least one proc that can do something */ 
    34773478                if (host->active_procs == 0) { 
    34783479                        host = NULL;