From bbc75390dd40269eeae8cb4ede5fa74ccfc24ad9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Mon, 21 Sep 2009 13:13:21 +0200 Subject: [PATCH] Less restrictive file names. --- apps/explorer/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.20.1