Parse url when adding query param.

This commit is contained in:
Tom Christie 2012-01-24 18:13:01 +00:00
parent f21107396a
commit 863bbe7684

View File

@ -5,7 +5,7 @@ register = Library()
def add_query_param(url, param):
(key, sep, val) = param.partition('=')
return unicode(URLObject(url) & (key, val))
return unicode(URLObject.parse(url) & (key, val))
register.filter('add_query_param', add_query_param)