diff --git a/plinth/modules/storage/urls.py b/plinth/modules/storage/urls.py index 1eda3efa0..b39b07bb4 100644 --- a/plinth/modules/storage/urls.py +++ b/plinth/modules/storage/urls.py @@ -25,6 +25,6 @@ from . import views urlpatterns = [ url(r'^sys/storage/$', views.index, name='index'), url(r'^sys/storage/expand$', views.expand, name='expand'), - url(r'^sys/storage/eject/(?P[\w%]+)/$', views.eject, - name='eject') + url(r'^sys/storage/eject/(?P[A-Za-z0-9%_.\-~]+)/$', + views.eject, name='eject') ]