diff options
author | Alexandre Flament <alex@al-f.net> | 2021-11-29 16:58:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 16:58:15 +0100 |
commit | 3700094f3a8f12bee4130035977e0cde4f859f9a (patch) | |
tree | 1b61a19f1ba9e8e8245920361efa4823f7bd6984 /searx | |
parent | fd8982d53dea0f891976de21dd0064a856afd737 (diff) | |
parent | 0c8ff97d9e9857905b60860e993b40dbc1e4f9d1 (diff) | |
download | searxng-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-x | searx/webapp.py | 3 |
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) |