Changes between Initial Version and Version 1 of Ticket #32725


Ignore:
Timestamp:
May 7, 2021, 6:30:53 AM (3 years ago)
Author:
Ned Batchelder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32725 – Description

    initial v1  
    44But it's stricter than that: any path component causes the path to be rejected:
    55
    6 > if name != os.path.basename(name):
    7 >         raise SuspiciousFileOperation("File name '%s' includes path elements" % name)
     6```
     7if name != os.path.basename(name):
     8        raise SuspiciousFileOperation("File name '%s' includes path elements" % name)
     9```
    810
    911Is this level of strictness necessary?
Back to Top