﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15900	reverse() does not properly escape namespaced views	teolicy	dmclain	"Easier to provide an example than to explain.

Given a freshly created django 1.3 project with urls.py as follows:
{{{
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
    url(r'^\.admin/', include(admin.site.urls)),
)
}}}
Trying to:
{{{
from django.core.urlresolvers import reverse
reverse('admin:index')
}}}
returns: `'/%5C.admin/'`
(the \ is escaped to be a literal \ rather than be interpreted as escaping the dot)

Changing the urlpattern line to:
{{{
url(r'^[.]admin/', include(admin.site.urls)),
}}}
Does **not** help.

As far as I could determine, this only happens for namespaced URLs."	Bug	closed	Core (Other)	1.3	Normal	fixed		dmclain tonightslastsong@…	Ready for checkin	1	0	0	0	0	0
