summaryrefslogtreecommitdiff
path: root/django/core/files/utils.py
AgeCommit message (Collapse)Author
2025-07-23Removed double spaces after periods and within phrases.Sarah Boyce
2024-07-09Fixed CVE-2024-39330 -- Added extra file name validation in Storage's save ↵Natalia
method. Thanks to Josh Schneier for the report, and to Carlton Gibson and Sarah Boyce for the reviews.
2023-03-20Fixed some typos in comments, docstrings, and tests.Liyang Zhang
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-05-13Fixed #32718 -- Relaxed file name validation in FileField.Mariusz Felisiak
- Validate filename returned by FileField.upload_to() not a filename passed to the FileField.generate_filename() (upload_to() may completely ignored passed filename). - Allow relative paths (without dot segments) in the generated filename. Thanks to Jakub Kleň for the report and review. Thanks to all folks for checking this patch on existing projects. Thanks Florian Apolloner and Markus Holtermann for the discussion and implementation idea. Regression in 0b79eb36915d178aef5c6a7bbce71b1e76d376d3.
2021-05-04Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads.Florian Apolloner
2017-04-26Refs #23919 -- Removed File's Python 2 proxied methods.Josh Schneier
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2016-05-27Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.Simon Charette
Thanks Tim for the review.
2015-06-12Fixed #24963 -- Added File.seekable() on Python 3.Carson Gee
2009-05-08Fixed #7712, #9404, #10249, #10300: a light refactor and cleanup of file ↵Jacob Kaplan-Moss
storage and the `File` object. Thanks to Armin Ronacher and Alex Gaynor. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10717 bcc190cf-cafb-0310-a4f2-bffc1f526a37