diff options
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index b721c7132..23c5d70cc 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -265,6 +265,9 @@ def custom_url_for(endpoint: str, **values): def morty_proxify(url: str): + if not url: + return url + if url.startswith('//'): url = 'https:' + url @@ -280,6 +283,8 @@ def morty_proxify(url: str): def image_proxify(url: str): + if not url: + return url if url.startswith('//'): url = 'https:' + url |