Opened 18 years ago
Closed 18 years ago
#4216 closed (wontfix)
FileField validator bug in django0.95
Reported by: | yi.codeplayer at gmail dot com | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Validators | Version: | 0.95 |
Severity: | Keywords: | FileField validator | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
in file django/db/models/fields/__init__.py
line 567 (i.e. the second line in function isWithinMediaRoot
),
change it from
if not f.startswith(os.path.normpath(settings.MEDIA_ROOT)):
to
if not f.startswith(os.path.abspath(settings.MEDIA_ROOT)):
i.e. change normpath
to abspath
.
It's fixed in later django version, but still in django 0.95 .
Note:
See TracTickets
for help on using tickets.
Django 0.95 was a particular release. It's not a moving target. So, yes, any bugs in 0.95 will remain there forever. The bugs that were fixed from 0.95 are in the 0.96 release.