Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from laat/urlquote

Urlquote
  • Loading branch information...
commit 34537764fd76d503218dc1420d421fdb5ba8005d 2 parents 126a09a + 0d06a3d
@washeck washeck authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 filebrowser/templatetags/fb_tags.py
View
4 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):
Please sign in to comment.
Something went wrong with that request. Please try again.