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
[mod] don't try to proxify data URL.
Dalf4c7b7870044e
diff --git a/searx/webapp.py b/searx/webapp.pyindex 35495a0ff..e1b6bea1c 100755--- a/searx/webapp.py+++ b/searx/webapp.py@@ -335,8 +335,15 @@ def image_proxify(url):if not request.preferences.get_value('image_proxy'):return url- if url.startswith('data:image/jpeg;base64,'):- return url+ if url.startswith('data:image/'):+ # 50 is an arbitrary number to get only the beginning of the image.+ partial_base64 = url[len('data:image/'):50].split(';')+ if len(partial_base64) == 2 \+ and partial_base64[0] in ['gif', 'png', 'jpeg', 'pjpeg', 'webp', 'tiff', 'bmp']\+ and partial_base64[1].startswith('base64,'):+ return url+ else:+ return Noneif settings.get('result_proxy'):return proxify(url)