#15181: FileSystemStorage generates wrong URL when path contains special
characters
------------------------------------------------+---------------------------
Reporter: e.generalov | Owner: nobody
Status: closed | Milestone:
Component: File uploads/storage | Version: SVN
Resolution: fixed | Keywords:
Triage Stage: Ready for checkin | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 |
------------------------------------------------+---------------------------
Changes (by paulegan):
* cc: paulegan@… (added)
Comment:
NB: This change means that URLs stored in !FileFields or !ImageFields
using the default storage are now handled differently.
Previously:
{{{#!python
>>> from django.core.files.storage import DefaultStorage, settings
>>> settings.configure(MEDIA_URL='http://localhost')
>>> DefaultStorage().url('http://media/test')
'http://media/test'
}}}
Now:
{{{#!python
>>> from django.core.files.storage import DefaultStorage, settings
>>> settings.configure(MEDIA_URL='http://localhost')
>>> DefaultStorage().url('http://media/test')
'http://localhost/http%3A//media/test'
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/15181#comment:6>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.