Skip to content

Commit

Permalink
Merge branch 'City-of-Helsinki-fix-percent-encoded-unicode-tags-autoc…
Browse files Browse the repository at this point in the history
…omplete'
  • Loading branch information
amercader committed Jul 13, 2015
2 parents 9ef3e5c + 638d6c2 commit fd20065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/controllers/api.py
Expand Up @@ -730,7 +730,8 @@ def dataset_autocomplete(self):
return self._finish_ok(resultSet)

def tag_autocomplete(self):
q = request.params.get('incomplete', '')
q = request.str_params.get('incomplete', '')
q = unicode(urllib.unquote(q), 'utf-8')
limit = request.params.get('limit', 10)
tag_names = []
if q:
Expand Down

0 comments on commit fd20065

Please sign in to comment.