diff options
author | dalf <alex@al-f.net> | 2013-12-30 22:34:35 +0100 |
---|---|---|
committer | dalf <alex@al-f.net> | 2013-12-30 22:34:35 +0100 |
commit | 664c039b387d6c50f09e27de36f794821c101fd9 (patch) | |
tree | a46f9164ce7c7aa62d1dbfa72717162d6ecd92bf /searx/engines/xpath.py | |
parent | 9eddcdb8e4cc8ce673ef07be9f26162ed6f89b93 (diff) | |
download | searxng-664c039b387d6c50f09e27de36f794821c101fd9.tar.gz searxng-664c039b387d6c50f09e27de36f794821c101fd9.zip |
xpath engine: bug fix
Diffstat (limited to 'searx/engines/xpath.py')
-rw-r--r-- | searx/engines/xpath.py | 2 |
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: |