From 912da8fbd56bc8f47b1a95bd4ed47c6081d4f461 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Sat, 12 Oct 2019 20:56:31 -0500 Subject: [PATCH] layerindex/urls.py: Allow branches with a '.' in the name Without this change the system will fail parsing various URL components Signed-off-by: Mark Hatle Signed-off-by: Paul Eggleton --- layerindex/urls.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layerindex/urls.py b/layerindex/urls.py index 7f4e545..89e70a2 100644 --- a/layerindex/urls.py +++ b/layerindex/urls.py @@ -107,7 +107,7 @@ urlpatterns = [ BulkChangeDeleteView.as_view( template_name='layerindex/deleteconfirm.html'), name="bulk_change_delete"), - url(r'^branch/(?P[-\w]+)/', + url(r'^branch/(?P[-.\w]+)/', include('layerindex.urls_branch')), url(r'^updates/$', UpdateListView.as_view( @@ -146,17 +146,17 @@ urlpatterns = [ ClassicRecipeDetailView.as_view( template_name='layerindex/classicrecipedetail.html'), name='classic_recipe'), - url(r'^comparison/recipes/(?P[-\w]+)/$', + url(r'^comparison/recipes/(?P[-.\w]+)/$', ClassicRecipeSearchView.as_view( template_name='layerindex/classicrecipes.html'), name='comparison_recipe_search'), - url(r'^comparison/search-csv/(?P[-\w]+)/$', + url(r'^comparison/search-csv/(?P[-.\w]+)/$', ClassicRecipeSearchView.as_view( template_name='layerindex/classicrecipes_csv.txt', paginate_by=0, content_type='text/csv'), name='comparison_recipe_search_csv'), - url(r'^comparison/stats/(?P[-\w]+)/$', + url(r'^comparison/stats/(?P[-.\w]+)/$', ClassicRecipeStatsView.as_view( template_name='layerindex/classicstats.html'), name='comparison_recipe_stats'), @@ -185,11 +185,11 @@ urlpatterns = [ url(r'^stoptask/(?P[-\w]+)/$', task_stop_view, name='task_stop'), - url(r'^ajax/layerchecklist/(?P[-\w]+)/$', + url(r'^ajax/layerchecklist/(?P[-.\w]+)/$', LayerCheckListView.as_view( template_name='layerindex/layerchecklist.html'), name='layer_checklist'), - url(r'^ajax/classchecklist/(?P[-\w]+)/$', + url(r'^ajax/classchecklist/(?P[-.\w]+)/$', BBClassCheckListView.as_view( template_name='layerindex/classchecklist.html'), name='class_checklist'),