X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/536b189c1a7173b2ea5f5ba16387ec904a7ce40e..3bf45c83c84f9e7a1c5f2dafd64d812c987037e5:/apps/explorer/views.py?ds=sidebyside diff --git a/apps/explorer/views.py b/apps/explorer/views.py index 76d04563..ef2a3962 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -61,7 +61,7 @@ def file_list(request, repo): fl = [] for file in repo.repo[latest_default]: - m = re.match(u'^pub_([\\w\\$\\.0-9_-]+).xml$', file.decode('utf-8'), re.UNICODE) + m = re.match(u'^pub_([^/]+).xml$', file.decode('utf-8'), re.UNICODE) if m is not None: fl.append(m.group(1)) @@ -307,7 +307,7 @@ def file_commit(request, path, repo): @with_repo def file_dc(request, path, repo): errors = None - rpath = file_path(fileid) + rpath = file_path(path) if request.method == 'POST': form = forms.DublinCoreForm(request.POST)