Fix too loose url regex for snapshot creation
Current regex '^(?P<instance_id>[^/]+)/create' for url projects/images/<instance-id>/create will match all urls start with 'create' by mistake. The '$' added will make sure the regex only match 'create' as expect. Change-Id: I9f180d8d904d15e9458513f39b1e4719ac6800a3 Closes-Bug: #1477822
This commit is contained in:
parent
6f2867770c
commit
a0dd5f4085
@ -24,7 +24,7 @@ from openstack_dashboard.dashboards.project.images.snapshots import views
|
||||
|
||||
urlpatterns = patterns(
|
||||
'',
|
||||
url(r'^(?P<instance_id>[^/]+)/create',
|
||||
url(r'^(?P<instance_id>[^/]+)/create/$',
|
||||
views.CreateView.as_view(),
|
||||
name='create')
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user