on master help sign in
[fix] unicode url fix
commit5f8ae9b9654f4a6c92e0e28d60fdb82e20ac5e34 authorasciimoo <asciimoo@gmail.com> dateSat 15 Feb 2014, 07:28 (13 years ago) parentfd65108
1 file changed+2−1
searx/webapp.py+2−1
searx/webapp.py+2−1
@@ -140,7 +140,8 @@ def index():
140140 .strip().split())
141141 if len(result['url']) > 74:
142142 url_parts = result['url'][:35], result['url'][-35:]
143− result['pretty_url'] = '{0}[...]{1}'.format(*url_parts)
143+ print url_parts
144+ result['pretty_url'] = u'{0}[...]{1}'.format(*url_parts)
144145 else:
145146 result['pretty_url'] = result['url']
146147