This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients accelerator0099, eric.smith
Date 2021-12-04.14:16:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638627378.0.0.697154974166.issue45981@roundup.psfhosted.org>
In-reply-to
Content
You would also need to decide what to do with these lines, just before the os.sep test:

        # Terminate the file name at the first null byte.  Null bytes in file
        # names are used as tricks by viruses in archives.
        null_byte = filename.find(chr(0))
        if null_byte >= 0:
            filename = filename[0:null_byte]

I don't think you'd want to do this on an encoded (raw) filename, but on the other hand the comment makes a good point.
History
Date User Action Args
2021-12-04 14:16:18eric.smithsetrecipients: + eric.smith, accelerator0099
2021-12-04 14:16:18eric.smithsetmessageid: <1638627378.0.0.697154974166.issue45981@roundup.psfhosted.org>
2021-12-04 14:16:17eric.smithlinkissue45981 messages
2021-12-04 14:16:17eric.smithcreate