anomy-list

default_name_type_checks

From: Luis Miguel (131722@xyz.molar.is)
Date: Fri 23 Jul 2004 - 17:58:53 GMT

  • Next message: 131812@xyz.molar.is: "anomy + f-prot => unnamed.txt"

    Hi all, looking inside Sanitizer.pm I get:

    # This is a list of MIME types, and regular expressions which file-names
    # are expected to match if that type is being used.
    #
    my $default_name_type_checks =
    {
        "audio/x-ms-wma" => '(?i).wm[af]$',
        "audio/x-wav" => '(?i).wav$',
        "audio/wav" => '(?i).wav$',
        "audio/x-midi" => '(?i).midi?$',
        "image/gif" => '(?i).gif$',
        "image/jpeg" => '(?i).jpe?g$',
        "image/png" => '(?i).png$',
        "image/tiff" => '(?i).tiff?$',
    };

    This is nice, if the filename dont correspond with the correct
    content-type, the filename is mangled.

    I think will be nice if $default_name_type_checks could be configured
    in sanitizer.cfg

    Regards.



    hosted by molar.is