summaryrefslogtreecommitdiffstats
path: root/packages/urls.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.py
parentbb570809f18c01a1172e970738bac6ac7b6171f1 (diff)
downloadarchweb-d4ebdc5b974e9478b2cd41a6948d031c2222c5b4.tar.gz
archweb-d4ebdc5b974e9478b2cd41a6948d031c2222c5b4.zip
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.py')
-rw-r--r--packages/urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/urls.py b/packages/urls.py
index 1f25e3fd..6c616297 100644
--- a/packages/urls.py
+++ b/packages/urls.py
@@ -30,10 +30,10 @@ urlpatterns = patterns('packages.views',
(r'^(?P<name>[A-z0-9\-+.]+)/$',
'details'),
- (r'^(?P<repo>[A-z0-9\-]+)/(?P<name>[A-z0-9\-+.]+)/$',
+ (r'^(?P<repo>[A-z0-9\-]+)/(?P<name>[^ /]+)/$',
'details'),
# canonical package url. subviews defined above
- (r'^(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/',
+ (r'^(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[^ /]+)/',
include(package_patterns)),
)