1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-14 14:21:23 +00:00

Make url match more precise

This commit is contained in:
zhengxie
2012-10-18 20:20:21 +08:00
parent ff1aa89f35
commit c6cbb8fc67
2 changed files with 3 additions and 3 deletions

View File

@@ -4,6 +4,6 @@ from views import *
urlpatterns = patterns('', urlpatterns = patterns('',
url(r'^add/$', share_repo, name='share_repo'), url(r'^add/$', share_repo, name='share_repo'),
url('^remove/(?P<token>.+)/$', remove_anonymous_share, name='remove_anonymous_share'), url('^remove/(?P<token>[^/]{24,24})/$', remove_anonymous_share, name='remove_anonymous_share'),
url('^(?P<token>.+)/$', anonymous_share_confirm, name='anonymous_share_confirm'), url('^(?P<token>[^/]{24,24})/$', anonymous_share_confirm, name='anonymous_share_confirm'),
) )

View File

@@ -56,7 +56,7 @@ urlpatterns = patterns('',
(r'^repo/upload_error/(?P<repo_id>[^/]+)/$', upload_file_error), (r'^repo/upload_error/(?P<repo_id>[^/]+)/$', upload_file_error),
(r'^repo/update_error/(?P<repo_id>[^/]+)/$', update_file_error), (r'^repo/update_error/(?P<repo_id>[^/]+)/$', update_file_error),
url(r'^repo/file_revisions/(?P<repo_id>[^/]+)/$', file_revisions, name='file_revisions'), url(r'^repo/file_revisions/(?P<repo_id>[^/]+)/$', file_revisions, name='file_revisions'),
url(r'^repo/(?P<repo_id>[^/]+)/$', RepoView.as_view(), name='repo'), url(r'^repo/(?P<repo_id>[^/]{36,36})/$', RepoView.as_view(), name='repo'),
(r'^repo/history/(?P<repo_id>[^/]+)/$', repo_history), (r'^repo/history/(?P<repo_id>[^/]+)/$', repo_history),
(r'^repo/history/revert/(?P<repo_id>[^/]+)/$', repo_history_revert), (r'^repo/history/revert/(?P<repo_id>[^/]+)/$', repo_history_revert),
url(r'^repo/history/view/(?P<repo_id>[^/]+)/$', RepoHistoryView.as_view(), name='repo_history_view'), url(r'^repo/history/view/(?P<repo_id>[^/]+)/$', RepoHistoryView.as_view(), name='repo_history_view'),