Skip to content

Commit 23b6ec0

Browse files
committed
Ensure that malicious attempts to use the branch name mechanism don't get anywhere
1 parent 1a17d01 commit 23b6ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prefix_finder/frontend/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
urlpatterns = [
77
url(r'^$', views.home, name='home'),
88
url(r'^_update_lists$', views.update_lists, name='update_lists'),
9-
url(r'^_preview_branch/(.+)$', views.preview_branch, name='preview_branch'),
9+
url(r'^_preview_branch/([A-Za-z0-9-]+)$', views.preview_branch, name='preview_branch'),
1010
url(r'^terms', TemplateView.as_view(template_name='terms.html'), name='terms'),
1111
url(r'^about', TemplateView.as_view(template_name='about.html'), name='about'),
1212
url(r'^list/(.+)$', views.list_details, name='list'),

0 commit comments

Comments
 (0)