From 30acd5c81689545ba02dfa392b118f262f3511b8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 12 Feb 2012 21:54:05 -0600 Subject: 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 --- packages/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/urls.py') 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 @@ (r'^stale_relations/$', 'stale_relations'), (r'^stale_relations/update/$','stale_relations_update'), - (r'^(?P[A-z0-9\-+.]+)/$', + (r'^(?P[^ /]+)/$', 'details'), (r'^(?P[A-z0-9\-]+)/(?P[^ /]+)/$', 'details'), -- cgit v1.2.3-54-g00ecf