diff -urN thttpd-2.21-13/config.h thttpd-2.21-14/config.h --- thttpd-2.21-13/config.h Sat Dec 1 17:59:36 2001 +++ thttpd-2.21-14/config.h Mon Dec 3 15:43:30 2001 @@ -225,7 +225,10 @@ */ #define VHOST_RELOAD_TIME 600 - +/* + ** CONFIGURE: extensions check +*/ +#define EXTENSION_CHECK /* CONFIGURE: ** Define special logging of requests through unix domain sockets diff -urN thttpd-2.21-13/libhttpd.c thttpd-2.21-14/libhttpd.c --- thttpd-2.21-13/libhttpd.c Sat Dec 1 17:59:36 2001 +++ thttpd-2.21-14/libhttpd.c Mon Dec 3 15:43:30 2001 @@ -3533,8 +3533,10 @@ static const char* index_names[] = { INDEX_NAMES }; int i; #ifdef VHOST_MYSQL +#ifdef EXTENSION_CHECK char *ext; #endif +#endif int expnlen, indxlen; char* cp; char* pi; @@ -3768,6 +3770,7 @@ return -1; } #ifdef VHOST_MYSQL +#ifdef EXTENSION_CHECK ext=rindex(hc->origfilename,'.'); if ( ext==NULL) ext=hc->origfilename; @@ -3798,7 +3801,7 @@ hc->encodedurl ); return -1; } - +#endif #endif /* Fill in end_byte_loc, if necessary. */