mirror of
https://github.com/searxng/searxng.git
synced 2024-11-13 13:41:03 +00:00
Fix double-encode error (fixes #1799)
This commit is contained in:
parent
22d05b3e59
commit
db9d7d47bd
1 changed files with 3 additions and 3 deletions
|
@ -118,9 +118,9 @@ def response(resp):
|
|||
'template': 'images.html'
|
||||
}
|
||||
try:
|
||||
result['author'] = author.encode('utf-8')
|
||||
result['title'] = title.encode('utf-8')
|
||||
result['content'] = content.encode('utf-8')
|
||||
result['author'] = author
|
||||
result['title'] = title
|
||||
result['content'] = content
|
||||
except:
|
||||
result['author'] = ''
|
||||
result['title'] = ''
|
||||
|
|
Loading…
Reference in a new issue