Branch: Tag:

2001-08-31

2001-08-31 06:23:21 by Per Hedbor <ph@opera.com>

Fixed [Bug 1990 (#1990)], extension handling is now case-insensitive (actually, it already was most of the time, the extension modules could only register lower_case extensions, however, the lookup was not done case-insentively)

Rev: server/base_server/configuration.pike:1.478

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.477 2001/08/30 14:43:50 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.478 2001/08/31 06:23:21 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1569:    // Map the file extensions, but only if there is a file...    TIMER_START(extension_module);    if(objectp(fid) && -  (tmp = file_extension_modules(loc = Roxen.extension(id->not_query, id)))) +  (tmp = file_extension_modules(loc = +  lower_case(Roxen.extension(id->not_query, +  id)))))    {    foreach(tmp, funp)    {
1619:    TIMER_START(content_type_module);    if(stringp(id->extension)) {    id->not_query += id->extension; -  loc = Roxen.extension(id->not_query, id); +  loc = lower_case(Roxen.extension(id->not_query, id));    }    TRACE_ENTER("Content-type mapping module", types_module);    tmp=type_from_filename(id->not_query, 1, loc);