anomy-bugs

Filename corruption

From: Mgr. Peter Tuharsky (32423@xyz.molar.is)
Date: Wed 26 Jul 2006 - 12:23:32 GMT

  • Next message: Mgr. Peter Tuharsky: "Filename corruption -cont."

    Hallo,

    we use ANOMY sanitizer 1.70-1 (Debian Sarge). The same behaviour I face
    with the fresh new 1.76 from Your website.
    It is configured to "accept" several file types, including .doc
    Quite often, the filename of the attached doc file is corrupted. I don't
    understand, why even does the ANOMY bother with the file -it should just
    "accept" it and let it go. However, it seems that mostly corrupted are
    filenames with diacritics.

    For example, I have sent myself the file "Informačná brožúra-konečná
    verzia.doc"

    And what I get is:

    This message has been 'sanitized'. This means that potentially
    dangerous content has been rewritten or removed. The following
    log describes which actions were taken.

    Sanitizer (start="1153750036"):
    Part (pos="1233"):
    SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
    Match (names="unnamed.txt", rule="2"):
    Enforced policy: accept

    Part (pos="1370"):
    SanitizeFile
    (filename="ISO-8859-2''Informa%E8n%E1%20bro%BE%FAra-kone%E8n%E1%20verzia.,
    ISO-8859-2''Informa%E8n%E1%20bro%BE%FAra-kone%E8n%E1%20verzia.doc,
    Informaèná bro¾úra-koneèná verzia., Informaèná bro¾úra-koneèná
    verzia.doc, doc", mimetype="application/msword"):
    Match
    (names="ISO-8859-2''Informa%E8n%E1%20bro%BE%FAra-kone%E8n%E1%20verzia.doc,
    Informaèná bro¾úra-koneèná verzia.doc", rule="2"):
    Enforced policy: accept

    Replaced file name with:
    ISO-8859-2__Informa%E8n%E1%20bro%BE%FAra-kone%E8n%E1%20verzia.doc

    Total modifications so far: 1

    Anomy 0.0.0 : Sanitizer.pm
    $Id: Sanitizer.pm,v 1.90 2005/01/04 20:30:13 bre Exp $

    In effect, the attachment is named
    =?iso-8859-1?Q?ISO-8859-2=5F=5FInforma%E8n%E1%20bro%BE%FAra-kone%E8n%E1%20verzia.doc=?=

    This is problem, since my users usually cannot open such a file
    directly. Saving it under different (correct) name works, file is not
    corrupted itself.

    Please, what could I do to get rid of this?

    Sincerely
    Peter



    hosted by molar.is