SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
fix out of range error in tracker remover plugin
Marc Abonce Seguindede46a2d5ad
diff --git a/searx/plugins/tracker_url_remover.py b/searx/plugins/tracker_url_remover.pyindex 9e18867b9..33dd621e1 100644--- a/searx/plugins/tracker_url_remover.py+++ b/searx/plugins/tracker_url_remover.py@@ -39,16 +39,14 @@ def on_result(request, search, result):return Trueparsed_query = parse_qsl(query)- changed = False+ changes = 0for i, (param_name, _) in enumerate(list(parsed_query)):for reg in regexes:if reg.match(param_name):- parsed_query.pop(i)- changed = True+ parsed_query.pop(i - changes)+ changes += 1+ result['parsed_url'] = result['parsed_url']._replace(query=urlencode(parsed_query))+ result['url'] = urlunparse(result['parsed_url'])break- if changed:- result['parsed_url'] = result['parsed_url']._replace(query=urlencode(parsed_query))- result['url'] = urlunparse(result['parsed_url'])-return True