summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-08-21 07:12:38 +0200
committerDan McGee <dan@archlinux.org>2012-08-21 07:13:31 +0200
commiteb44404a17ae9feacdf2948a5cda958510ac2fed (patch)
tree7ef65b8c120a59849ba13a679beea80699a4a163 /packages
parent90001d9ac781d07feba6120bfe64112481b9a5fb (diff)
downloadarchweb-eb44404a17ae9feacdf2948a5cda958510ac2fed.tar.gz
archweb-eb44404a17ae9feacdf2948a5cda958510ac2fed.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/templatetags/package_extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 1aedf67..d87a74a 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