django1/django/db
Mariusz Felisiak b8ecb06436 [2.2.x] Fixed #32718 -- Relaxed file name validation in FileField.
- 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 0b79eb3691.

Backport of b55699968f from main.
2021-05-13 09:00:25 +02:00
..
backends [2.2.x] Fixed #30903 -- Fixed migrations crash on PostgreSQL when adding Index with opclasses and ordering. 2019-10-24 09:53:33 +02:00
migrations [2.2.x] Fixed #30350 -- Prevented recreation of migration for operations with a range object. 2019-04-14 12:58:34 +02:00
models [2.2.x] Fixed #32718 -- Relaxed file name validation in FileField. 2021-05-13 09:00:25 +02:00
__init__.py [2.2.x] Removed an outdated comment on DefaultConnectionProxy. 2019-02-20 11:31:57 -05:00
transaction.py Refs #27025 -- Removed obsolete sqlite3 transaction management workaround for Python 3.6+. 2018-10-25 19:54:48 -04:00
utils.py Fixed #30071 -- Fixed error message when a 'default' database isn't provided. 2019-01-09 10:58:37 -05:00