logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 6243639f013b18fbdf6d667895f32fda6048d8f8
parent: b30bc5eeeb1202bfe20ceb488336fc12b59c458c
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sun, 30 Oct 2016 21:15:18 +0100

[mod] do not proxify images if image proxy is not set

Diffstat:

Msearx/webapp.py6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/searx/webapp.py b/searx/webapp.py @@ -266,15 +266,15 @@ def proxify(url): def image_proxify(url): - if settings.get('result_proxy'): - return proxify(url) - if url.startswith('//'): url = 'https:' + url if not request.preferences.get_value('image_proxy'): return url + if settings.get('result_proxy'): + return proxify(url) + h = hmac.new(settings['server']['secret_key'], url.encode('utf-8'), hashlib.sha256).hexdigest() return '{0}?{1}'.format(url_for('image_proxy'),