X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/536b189c1a7173b2ea5f5ba16387ec904a7ce40e..9a761497081506a237bcec3319f2608ea7fb4004:/apps/explorer/views.py 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)