mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
b55699968f
- 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
|
||
---|---|---|
.. | ||
__init__.py | ||
4x8.png | ||
8x4.png | ||
models.py | ||
test_autofield.py | ||
test_binaryfield.py | ||
test_booleanfield.py | ||
test_charfield.py | ||
test_datetimefield.py | ||
test_decimalfield.py | ||
test_durationfield.py | ||
test_field_flags.py | ||
test_filefield.py | ||
test_filepathfield.py | ||
test_floatfield.py | ||
test_foreignkey.py | ||
test_genericipaddressfield.py | ||
test_imagefield.py | ||
test_integerfield.py | ||
test_jsonfield.py | ||
test_manytomanyfield.py | ||
test_promises.py | ||
test_slugfield.py | ||
test_textfield.py | ||
test_uuid.py | ||
tests.py |