summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-29 16:58:15 +0100
committerGitHub <noreply@github.com>2021-11-29 16:58:15 +0100
commit3700094f3a8f12bee4130035977e0cde4f859f9a (patch)
tree1b61a19f1ba9e8e8245920361efa4823f7bd6984 /searx
parentfd8982d53dea0f891976de21dd0064a856afd737 (diff)
parent0c8ff97d9e9857905b60860e993b40dbc1e4f9d1 (diff)
downloadsearxng-3700094f3a8f12bee4130035977e0cde4f859f9a.tar.gz
searxng-3700094f3a8f12bee4130035977e0cde4f859f9a.zip
Merge pull request #557 from return42/fix-autocomplete
[fix] route /autocompleter: escape `<` and `>` in the simple theme
Diffstat (limited to 'searx')
-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)