summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-11-28 13:42:35 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-29 07:20:08 +0100
commit0c8ff97d9e9857905b60860e993b40dbc1e4f9d1 (patch)
tree17f049bf85d11e6744fc663f0f978754fc313862 /searx/webapp.py
parent11ba7f294ff1db37822dd5e7ec75cab5b30deccd (diff)
downloadsearxng-0c8ff97d9e9857905b60860e993b40dbc1e4f9d1.tar.gz
searxng-0c8ff97d9e9857905b60860e993b40dbc1e4f9d1.zip
[fix] route /autocompleter: escape `<` and `>` in the simple theme
This is a follow up of 9a3253fc escaping `<` and `>` in all themes. This patch fix issue in oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 613849dc4..b6dc18937 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -916,7 +916,8 @@ def autocompleter():
suggestions = json.dumps([sug_prefix, results])
mimetype = 'application/x-suggestions+json'
- suggestions = escape(suggestions, False)
+ if get_current_theme_name() == 'simple':
+ suggestions = escape(suggestions, False)
return Response(suggestions, mimetype=mimetype)