#11456: flatpages append slash not working with unicode urls
--------------------------+-------------------------------------------------
Reporter: hadaraz | Owner: nobody
Status: new | Milestone:
Component: Contrib apps | Version: 1.1-beta-1
Keywords: flatpages | Stage: Unreviewed
Has_patch: 0 |
--------------------------+-------------------------------------------------
The append slash is currently:
{{{
if not url.endswith('/') and settings.APPEND_SLASH:
return HttpResponseRedirect("%s/" % request.path)
}}}
It works fine for non-unicode urls. However, when using another regex for
the url field which allows unicode chars in it, request.path needs to be
quoted for the redirection to work:
{{{
if not url.endswith('/') and settings.APPEND_SLASH:
return HttpResponseRedirect("%s/" %
iri_to_uri(urlquote(request.path)))
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/11456>
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
-~----------~----~----~----~------~----~------~--~---