Only accept wgnames which adhere to the constraints currently practiced. (Before this change, the URL patterns would match wg names containing non-ascii characters, which later would bomb due to mix of collations when accessing the database. Might as well return a 404 at once instead).
- Legacy-Id: 3018
This commit is contained in:
parent
2fc4b1bc3c
commit
91c2f6f2a7
|
@ -13,7 +13,7 @@ urlpatterns = patterns('',
|
|||
(r'^1wg-summary-by-acronym.txt', views.wg_summary_acronym),
|
||||
(r'^1wg-charters.txt', views.wg_charters),
|
||||
(r'^1wg-charters-by-acronym.txt', views.wg_charters_by_acronym),
|
||||
(r'^(?P<acronym>[^/]+)/documents/txt/$', views.wg_documents_txt),
|
||||
(r'^(?P<acronym>[^/]+)/$', views.wg_documents_html),
|
||||
(r'^(?P<acronym>[^/]+)/charter/$', views.wg_charter),
|
||||
(r'^(?P<acronym>[a-z0-9-]+)/documents/txt/$', views.wg_documents_txt),
|
||||
(r'^(?P<acronym>[a-z0-9-]+)/$', views.wg_documents_html),
|
||||
(r'^(?P<acronym>[a-z0-9-]+)/charter/$', views.wg_charter),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue