Received: by taz.hyperreal.com (8.8.4/V2.0) id JAA23190; Thu, 20 Feb 1997 09:30:06 -0800 (PST) Received: by taz.hyperreal.com (8.8.4/V2.0) id JAA23163; Thu, 20 Feb 1997 09:30:01 -0800 (PST) Date: Thu, 20 Feb 1997 09:30:01 -0800 (PST) Message-Id: <199702201730.JAA23163@taz.hyperreal.com> From: David Bronder Reply-To: David Bronder To: gnats-admin@hyperreal.com Cc: brian@hyperreal.com, apache-bugdb@apache.org Subject: mod_mime/181: AddHandler (and others?) doesn't match the extension properly In-Reply-To: Your message of Thu, 20 Feb 1997 09:23:03 -0800 (PST) <199702201723.JAA21306@taz.hyperreal.com> Sender: apache-bugdb-owner@apache.org Precedence: bulk The contract type is `' with a response time of 3 business hours. A first analysis should be sent before: Thu Feb 20 13:00:01 PST 1997 >Number: 181 >Category: mod_mime >Synopsis: AddHandler (and others?) doesn't match the extension properly >Confidential: no >Severity: critical >Priority: medium >Responsible: gnats-admin (GNATS administrator) >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Feb 20 09:30:01 1997 >Originator: David-Bronder@uiowa.edu >Organization: apache >Release: 1.2b6 >Environment: AIX 4.1.4, C for AIX >Description: The AddHandler directive (and presumably the other related directives) doesn't properly match the given extension. It will declare a match if the extension string appears anywhere in the filename, not just at the end. For example, given the directive "AddHandler imap-file map", the filename "main.map" will match, but so will "campus.map.html". This can severely limit the available namespace for files to be served. >How-To-Repeat: http://fire.weeg.uiowa.edu/test/bob-map.html works as expected. http://fire.weeg.uiowa.edu/test/bob.map.html is processed as an image map file (the srm.conf file contains the "AddHandler imap-file map" directive). >Fix: >Audit-Trail: >Unformatted: