diff options
Diffstat (limited to 'searx/webapp.py')
| -rw-r--r-- | searx/webapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index f88819846..e25156f40 100644 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -214,11 +214,11 @@ def image_proxify(url): if url.startswith('//'): url = 'https:' + url - h = hashlib.sha256(url + settings['server']['secret_key']).hexdigest() - if not settings['server'].get('image_proxy') and not request.cookies.get('image_proxy'): return url + h = hashlib.sha256(url + settings['server']['secret_key']).hexdigest() + return '{0}?{1}'.format(url_for('image_proxy'), urlencode(dict(url=url, h=h))) |