on master help sign in
xpath engine: bug fix
commit664c039b387d6c50f09e27de36f794821c101fd9 authordalf <alex@al-f.net> dateMon 30 Dec 2013, 22:34 (13 years ago) parent9eddcdb
1 file changed+1−1
searx/engines/xpath.py+1−1
searx/engines/xpath.py+1−1
@@ -28,7 +28,7 @@ def extract_url(xpath_results):
2828 url = xpath_results[0].attrib.get('href')
2929 else:
3030 url = xpath_results.attrib.get('href')
31− if not url.startswith('http://') or not url.startswith('https://'):
31+ if not url.startswith('http://') and not url.startswith('https://'):
3232 url = 'http://'+url
3333 parsed_url = urlparse(url)
3434 if not parsed_url.netloc: