summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-01 01:12:40 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-01 01:12:40 -0500
commit56f60fcfbe1cd2951dd1867360ae364213686b5f (patch)
treeb54b67446b71ca6cc78c66bf790fe448384abafa
parentad54af54f3af11bad7b020527c11d18cf94c2ab3 (diff)
this probably should have happened during the merge (small stuff)
-rw-r--r--packages/templatetags/package_extras.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index fc2201e5..827f6438 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -37,7 +37,7 @@ class BuildQueryStringNode(template.Node):
qs['sort'] = ['-' + self.sortfield]
else:
qs['sort'] = [self.sortfield]
- return urlencode(qs, True)
+ return urlencode(qs, True).replace('&', '&amp;')
@register.tag(name='buildsortqs')
def do_buildsortqs(parser, token):
@@ -73,12 +73,6 @@ def userpkgs(user):
return ''
-def svn_link(package, svnpath):
- '''Helper function for the two real SVN link methods.'''
- parts = (package.repo.svn_root, package.pkgbase, svnpath)
- linkbase = "http://projects.archlinux.org/svntogit/%s.git/tree/%s/%s/"
- return linkbase % tuple(urlquote(part) for part in parts)
-
@register.simple_tag
def svn_arch(package):
repo = package.repo.name.lower()