Skip to content

Commit 91c2f6f

Browse files
committed
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
1 parent 2fc4b1b commit 91c2f6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/wginfo/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
(r'^1wg-summary-by-acronym.txt', views.wg_summary_acronym),
1414
(r'^1wg-charters.txt', views.wg_charters),
1515
(r'^1wg-charters-by-acronym.txt', views.wg_charters_by_acronym),
16-
(r'^(?P<acronym>[^/]+)/documents/txt/$', views.wg_documents_txt),
17-
(r'^(?P<acronym>[^/]+)/$', views.wg_documents_html),
18-
(r'^(?P<acronym>[^/]+)/charter/$', views.wg_charter),
16+
(r'^(?P<acronym>[a-z0-9-]+)/documents/txt/$', views.wg_documents_txt),
17+
(r'^(?P<acronym>[a-z0-9-]+)/$', views.wg_documents_html),
18+
(r'^(?P<acronym>[a-z0-9-]+)/charter/$', views.wg_charter),
1919
)

0 commit comments

Comments
 (0)