Changes between Initial Version and Version 1 of Ticket #32725
- Timestamp:
- May 7, 2021, 6:30:53 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32725 – Description
initial v1 4 4 But it's stricter than that: any path component causes the path to be rejected: 5 5 6 > if name != os.path.basename(name): 7 > raise SuspiciousFileOperation("File name '%s' includes path elements" % name) 6 ``` 7 if name != os.path.basename(name): 8 raise SuspiciousFileOperation("File name '%s' includes path elements" % name) 9 ``` 8 10 9 11 Is this level of strictness necessary?