summaryrefslogtreecommitdiff
path: root/django/core/files/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some typos in comments, docstrings, and tests.Liyang Zhang2023-03-201-1/+1
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-6/+6
|
* Fixed #32718 -- Relaxed file name validation in FileField.Mariusz Felisiak2021-05-131-5/+15
| | | | | | | | | | | | | - 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.
* Fixed CVE-2021-31542 -- Tightened path & file name sanitation in file uploads.Florian Apolloner2021-05-041-0/+16
|
* Refs #23919 -- Removed File's Python 2 proxied methods.Josh Schneier2017-04-261-2/+0
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-1/+1
|
* Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.Simon Charette2016-05-271-5/+25
| | | | Thanks Tim for the review.
* Fixed #24963 -- Added File.seekable() on Python 3.Carson Gee2015-06-121-0/+5
|
* Fixed #7712, #9404, #10249, #10300: a light refactor and cleanup of file ↵Jacob Kaplan-Moss2009-05-081-0/+29
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