- fixed a bug that made /-prefixed fcgi extensions being handled also when matching the end of the uri (#1489)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2030 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
c65ad47a55
commit
bdd2fce478
2
NEWS
2
NEWS
|
@ -10,6 +10,8 @@ NEWS
|
|||
* fixed initgroups() called after chroot (#1384)
|
||||
* fixed case-sensitive check for Auth-Method (#1456)
|
||||
* execute fcgi app without /bin/sh if used as argument to spawn-fcgi (#1428)
|
||||
* fixed a bug that made /-prefixed fcgi extensions being handled also when
|
||||
matching the end of the uri (#1489)
|
||||
|
||||
- 1.4.18 - 2007-09-09
|
||||
|
||||
|
|
|
@ -3456,8 +3456,9 @@ static handler_t fcgi_check_extension(server *srv, connection *con, void *p_d, i
|
|||
if (s_len < ct_len) continue;
|
||||
|
||||
/* check extension in the form "/fcgi_pattern" */
|
||||
if (*(extension->key->ptr) == '/' && strncmp(fn->ptr, extension->key->ptr, ct_len) == 0) {
|
||||
break;
|
||||
if (*(extension->key->ptr) == '/') {
|
||||
if (strncmp(fn->ptr, extension->key->ptr, ct_len) == 0)
|
||||
break;
|
||||
} else if (0 == strncmp(fn->ptr + s_len - ct_len, extension->key->ptr, ct_len)) {
|
||||
/* check extension in the form ".fcg" */
|
||||
break;
|
||||
|
@ -3473,7 +3474,7 @@ static handler_t fcgi_check_extension(server *srv, connection *con, void *p_d, i
|
|||
for (k = 0; k < extension->used; k++) {
|
||||
host = extension->hosts[k];
|
||||
|
||||
/* we should have at least one proc that can do somthing */
|
||||
/* we should have at least one proc that can do something */
|
||||
if (host->active_procs == 0) {
|
||||
host = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue