X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/d96e0c45b35295d3e6012b8e2c93fe42d8d72ca9..215ee372b0f2ae4d99e5f73d8aea89ac8b9062c2:/apps/explorer/views.py?ds=inline diff --git a/apps/explorer/views.py b/apps/explorer/views.py index e5876e92..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))