From eb44404a17ae9feacdf2948a5cda958510ac2fed Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 21 Aug 2012 00:12:38 -0500 Subject: Fix scm_link in a way that doesn't make cgit barf This does what commit cd51842ce86 set out to do in a way that doesn't break cgit's not-so-hit query string parsing. Signed-off-by: Dan McGee --- packages/templatetags/package_extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py index 1aedf677..d87a74a5 100644 --- a/packages/templatetags/package_extras.py +++ b/packages/templatetags/package_extras.py @@ -103,7 +103,7 @@ def scm_link(package, operation): linkbase = ( "https://projects.archlinux.org/svntogit/%s.git/%s/trunk?" "h=packages/%s") - return linkbase % tuple(urlquote(part) for part in parts) + return linkbase % tuple(urlquote(part.encode('utf-8')) for part in parts) @register.simple_tag -- cgit v1.2.3-54-g00ecf