httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50434] New: file name based matching should not consider files that are named just ".extension"
Date Wed, 08 Dec 2010 14:05:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50434

           Summary: file name based matching should not consider files
                    that are named just ".extension"
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_mime
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: calestyo@scientia.net


Guess this is more or less related to issue #50357,... but I would suggest the
following independently of that one.

When mod_mime determines type/charset/handler/encoding/etc. based on the file
name by their extensions it should not consider the "first extension" of files
that start with a ".".
e.g. having a file ".png" should _not_ lead to type "image/png", as it's (IMHO)
more likely to be just a "hidden" file named "png" than a PNG picture.

I would however suggest to consider "secondary extensions" of files starting
with a ".", e.g. ".png.ascii" is IMHO likely to be a "hidden" file, named
"png", in ascii charset.

So for files starting with a ".":
.ignore.consider.consider...


This of course should also be done by the mappings set up via the TypeMap file.

This makes also indices generated by mod_autoindex looking more sane.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message