summaryrefslogtreecommitdiff
path: root/packages/urls_groups.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-01-28 17:48:34 -0600
committerDan McGee <dan@archlinux.org>2012-01-28 17:48:34 -0600
commitd4ebdc5b974e9478b2cd41a6948d031c2222c5b4 (patch)
tree6a54c032ede21a1a6ac423ca4e4adaf00f1dbb30 /packages/urls_groups.py
parentbb570809f18c01a1172e970738bac6ac7b6171f1 (diff)
Support more characters in package namesrelease_2012-01-28
Fixes FS#28106, where we couldn't view packages with names containing the '@' symbol. Rather than whitelist things, switch to a blacklist of only a space and slash character. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/urls_groups.py')
-rw-r--r--packages/urls_groups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/urls_groups.py b/packages/urls_groups.py
index c561e50d..d609944b 100644
--- a/packages/urls_groups.py
+++ b/packages/urls_groups.py
@@ -3,7 +3,7 @@ from django.conf.urls.defaults import patterns
urlpatterns = patterns('packages.views',
(r'^$', 'groups', {}, 'groups-list'),
(r'^(?P<arch>[A-z0-9]+)/$', 'groups'),
- (r'^(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/$', 'group_details'),
+ (r'^(?P<arch>[A-z0-9]+)/(?P<name>[^ /]+)/$', 'group_details'),
)
# vim: set ts=4 sw=4 et: