#1291: Django built-in web-server does not handle double-slashes (//) properly,
ends up in infinte loop
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: reopened | Component: Generic views
Version: SVN | Resolution:
Keywords: | Stage: Ready for
checkin
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Changes (by [EMAIL PROTECTED]):
* status: closed => reopened
* resolution: worksforme =>
* version: => SVN
* component: django-admin.py => Generic views
Comment:
I am able to reproduce the problem. It occurs if the double slash occurs
at the start of the path that the regexp captures as the path parameter to
the 'django.views.static.serve' function.
So in the example '/site_media//css/site.css' causes the 'serve' function
to respond with a redirection to 'css/site.css' which causes the browser
to request '/site_media//css/css/site.css' and so on... (firefox
eventually gives up)
A request of '/site_media//site.css' causes the 'serve' function to
respond with a redirection to 'site.css' which causes the browser to
request the same url again (firefox gives up)
So its seems to be a bug in the 'django.views.static.serve' function.
--
Ticket URL: <http://code.djangoproject.com/ticket/1291#comment:4>
Django Code <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
-~----------~----~----~----~------~----~------~--~---