mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 04:27:46 +01:00
Merge pull request #557 from return42/fix-autocomplete
[fix] route /autocompleter: escape `<` and `>` in the simple theme
This commit is contained in:
commit
3700094f3a
@ -916,6 +916,7 @@ def autocompleter():
|
|||||||
suggestions = json.dumps([sug_prefix, results])
|
suggestions = json.dumps([sug_prefix, results])
|
||||||
mimetype = 'application/x-suggestions+json'
|
mimetype = 'application/x-suggestions+json'
|
||||||
|
|
||||||
|
if get_current_theme_name() == 'simple':
|
||||||
suggestions = escape(suggestions, False)
|
suggestions = escape(suggestions, False)
|
||||||
return Response(suggestions, mimetype=mimetype)
|
return Response(suggestions, mimetype=mimetype)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user