Changes between Version 1 and Version 2 of Ticket #32725


Ignore:
Timestamp:
May 7, 2021, 6:31:24 AM (4 years ago)
Author:
Ned Batchelder
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32725 – Description

    v1 v2  
    44But it's stricter than that: any path component causes the path to be rejected:
    55
    6 ```
     6{{{
    77if name != os.path.basename(name):
    88        raise SuspiciousFileOperation("File name '%s' includes path elements" % name)
    9 ```
     9}}}
     10
    1011
    1112Is this level of strictness necessary?
Back to Top