From: Ɓukasz Rekucki Date: Mon, 21 Sep 2009 11:13:21 +0000 (+0200) Subject: Less restrictive file names. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/bbc75390dd40269eeae8cb4ede5fa74ccfc24ad9?hp=d96e0c45b35295d3e6012b8e2c93fe42d8d72ca9 Less restrictive file names. --- 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))