From 6243639f013b18fbdf6d667895f32fda6048d8f8 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 30 Oct 2016 21:15:18 +0100 Subject: [PATCH] [mod] do not proxify images if image proxy is not set --- searx/webapp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index d18288599..3fd127eca 100644 --- 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'),