summaryrefslogtreecommitdiff
path: root/searx/engines/xpath.py
diff options
context:
space:
mode:
authorpw3t <romain@berthor.fr>2014-01-02 19:52:21 +0100
committerpw3t <romain@berthor.fr>2014-01-02 19:52:21 +0100
commitefb6eca39e9dd851645f76bd72ac076f61a11c09 (patch)
tree04b571f5d56967d63c213b45d35cfda08c4d2769 /searx/engines/xpath.py
parent6f2b8aca5e36196f6370951d915b06356a2549db (diff)
parentd2898b08187101aad477ef48c8ea7518cee8b925 (diff)
Merge branch 'master' of https://github.com/asciimoo/searx
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r--searx/engines/xpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py
index 068f2ba61..ad3a97ffa 100644
--- a/searx/engines/xpath.py
+++ b/searx/engines/xpath.py
@@ -28,7 +28,7 @@ def extract_url(xpath_results):
url = xpath_results[0].attrib.get('href')
else:
url = xpath_results.attrib.get('href')
- if not url.startswith('http://') or not url.startswith('https://'):
+ if not url.startswith('http://') and not url.startswith('https://'):
url = 'http://'+url
parsed_url = urlparse(url)
if not parsed_url.netloc: