Mercurial > kallithea
changeset 2842:14852cad8ee7 beta
fixes issues #566 non-ascii search params are crashing paginator
- those arguments needs to be converted to strings
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 15 Sep 2012 22:05:49 +0200 |
parents | 2fa3c09f63e0 |
children | ab75def5c15d |
files | rhodecode/controllers/search.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/search.py Sat Sep 15 21:26:23 2012 +0200 +++ b/rhodecode/controllers/search.py Sat Sep 15 22:05:49 2012 +0200 @@ -40,6 +40,7 @@ from whoosh.qparser import QueryParser, QueryParserError from whoosh.query import Phrase, Wildcard, Term, Prefix from rhodecode.model.repo import RepoModel +from rhodecode.lib.utils2 import safe_str log = logging.getLogger(__name__) @@ -116,7 +117,7 @@ def url_generator(**kw): return update_params("?q=%s&type=%s" \ - % (c.cur_query, c.cur_type), **kw) + % (safe_str(c.cur_query), safe_str(c.cur_type)), **kw) repo_location = RepoModel().repos_path c.formated_results = Page( WhooshResultWrapper(search_type, searcher, matcher,