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?ds=sidebyside;hp=-c Less restrictive file names. --- bbc75390dd40269eeae8cb4ede5fa74ccfc24ad9 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))