mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 02:40:11 +01:00
[fix] unicode url fix
This commit is contained in:
parent
fd651083f2
commit
5f8ae9b965
@ -140,7 +140,8 @@ def index():
|
||||
.strip().split())
|
||||
if len(result['url']) > 74:
|
||||
url_parts = result['url'][:35], result['url'][-35:]
|
||||
result['pretty_url'] = '{0}[...]{1}'.format(*url_parts)
|
||||
print url_parts
|
||||
result['pretty_url'] = u'{0}[...]{1}'.format(*url_parts)
|
||||
else:
|
||||
result['pretty_url'] = result['url']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user