Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] handle missing url scheme - fixes #428

Adam Taubere3df22b14017
diff --git a/searx/engines/gigablast.py b/searx/engines/gigablast.py
index b852de9ba..04513cc98 100644
--- a/searx/engines/gigablast.py
+++ b/searx/engines/gigablast.py
@@ -53,6 +53,8 @@ def response(resp):
# parse results
for result in dom.xpath(results_xpath):
url = result.xpath(url_xpath)[0].text
+ if not url.startswith('http://') and not url.startswith('https://'):
+ url = 'http://' + url
title = result.xpath(title_xpath)[0].text
content = escape(result.xpath(content_xpath)[0].text)