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))
@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)