Message407669
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. |
|
Date |
User |
Action |
Args |
2021-12-04 14:16:18 | eric.smith | set | recipients:
+ eric.smith, accelerator0099 |
2021-12-04 14:16:18 | eric.smith | set | messageid: <1638627378.0.0.697154974166.issue45981@roundup.psfhosted.org> |
2021-12-04 14:16:17 | eric.smith | link | issue45981 messages |
2021-12-04 14:16:17 | eric.smith | create | |
|