Opened 13 years ago

Closed 13 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


in file django/db/models/fields/ line 567 (i.e. the second line in function isWithinMediaRoot),
change it from

if not f.startswith(os.path.normpath(settings.MEDIA_ROOT)):


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 .

Change History (1)

comment:1 Changed 13 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top