Message356299
I found this issue after helping someone solve a Stack Overflow question at https://stackoverflow.com/q/58767241/100297; they eventually figured out that their prefix was a path, not a path element.
I'd be all in favour of making tempfile._sanitize_params either reject a prefix or suffix with `os.sep` or `os.altsep` characters, or just take the last element of os.path.split(). |
|
Date |
User |
Action |
Args |
2019-11-09 13:09:41 | mjpieters | set | recipients:
+ mjpieters, vstinner, lukasz.langa, cheryl.sabella, Yusuke Endoh, thorleon, obestwalter |
2019-11-09 13:09:41 | mjpieters | set | messageid: <1573304981.13.0.748531806761.issue35278@roundup.psfhosted.org> |
2019-11-09 13:09:41 | mjpieters | link | issue35278 messages |
2019-11-09 13:09:40 | mjpieters | create | |
|