Message173478
Some comments to patch.
+ arcname = os.path.sep.join([x for x in arcname.split(os.path.sep)
+ if x != '..'])
File names in zip archive should use '/' as separator, not os.path.sep. '../spam' will be not cleaned by this code.
+ while arcname[0] in (os.sep, os.altsep):
+ arcname = arcname[1:]
It will not save from filenames containing drive letter: 'C:/Windows/python.exe'. |
|
Date |
User |
Action |
Args |
2012-10-21 20:16:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, amaury.forgeotdarc, zhigang |
2012-10-21 20:16:28 | serhiy.storchaka | set | messageid: <1350850588.68.0.241826980062.issue10905@psf.upfronthosting.co.za> |
2012-10-21 20:16:28 | serhiy.storchaka | link | issue10905 messages |
2012-10-21 20:16:28 | serhiy.storchaka | create | |
|