This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mjpieters
Recipients Yusuke Endoh, cheryl.sabella, lukasz.langa, mjpieters, obestwalter, thorleon, vstinner
Date 2019-11-09.13:09:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573304981.13.0.748531806761.issue35278@roundup.psfhosted.org>
In-reply-to
Content
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().
History
Date User Action Args
2019-11-09 13:09:41mjpieterssetrecipients: + mjpieters, vstinner, lukasz.langa, cheryl.sabella, Yusuke Endoh, thorleon, obestwalter
2019-11-09 13:09:41mjpieterssetmessageid: <1573304981.13.0.748531806761.issue35278@roundup.psfhosted.org>
2019-11-09 13:09:41mjpieterslinkissue35278 messages
2019-11-09 13:09:40mjpieterscreate