Permalink
Browse files

Merge pull request #1 from laat/urlquote

Urlquote
  • Loading branch information...
2 parents 126a09a + 0d06a3d commit 34537764fd76d503218dc1420d421fdb5ba8005d @washeck washeck committed Mar 26, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 filebrowser/templatetags/fb_tags.py
@@ -2,8 +2,6 @@
# django imports
from django import template
-from django.utils.encoding import smart_unicode
-from django.utils.safestring import mark_safe
from django.utils.http import urlquote
# filebrowser imports
@@ -63,7 +61,7 @@ def get_query_string(p, new_params=None, remove=None):
del p[k]
elif v is not None:
p[k] = v
- return mark_safe('?' + '&'.join([u'%s=%s' % (k, urlquote(v)) for k, v in p.items()]).replace(' ', '%20'))
+ return '?' + '&'.join([u'%s=%s' % (urlquote(k), urlquote(v)) for k, v in p.items()])
def string_to_dict(string):

0 comments on commit 3453776

Please sign in to comment.