summaryrefslogtreecommitdiff
path: root/packages/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-02-12 21:54:05 -0600
committerDan McGee <dan@archlinux.org>2012-02-12 21:54:05 -0600
commit30acd5c81689545ba02dfa392b118f262f3511b8 (patch)
tree393d3b50680a9d997df7d0ecbf20d24fe83997d8 /packages/urls.py
parentc3ebf7deae0bb04f1637e9a52e7f9f38d454fec7 (diff)
Protect urlencode calls against Unicode data
These would cause page errors if passed anything not in the ASCII character set. This change allows for packages to have names composed of any Unicode characters, not just those in the ASCII set. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/urls.py')
-rw-r--r--packages/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/urls.py b/packages/urls.py
index 6c616297..52b09d2c 100644
--- a/packages/urls.py
+++ b/packages/urls.py
@@ -28,7 +28,7 @@ urlpatterns = patterns('packages.views',
(r'^stale_relations/$', 'stale_relations'),
(r'^stale_relations/update/$','stale_relations_update'),
- (r'^(?P<name>[A-z0-9\-+.]+)/$',
+ (r'^(?P<name>[^ /]+)/$',
'details'),
(r'^(?P<repo>[A-z0-9\-]+)/(?P<name>[^ /]+)/$',
'details'),