Selaa lähdekoodia

[fix] sanitize results II.

asciimoo 11 vuotta sitten
vanhempi
commit
1e5cbc5f9e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      searx/engines/startpage.py

+ 1
- 1
searx/engines/startpage.py Näytä tiedosto

@@ -24,7 +24,7 @@ def response(resp):
24 24
         url = urljoin(base_url, link.attrib.get('href'))
25 25
         parsed_url = urlparse(url)
26 26
         # TODO better google link detection
27
-        if parsed_url.netloc.find('google.com') >= 0:
27
+        if parsed_url.netloc.find('www.google.com') >= 0:
28 28
             continue
29 29
         title = ' '.join(link.xpath('.//text()'))
30 30
         content = escape(' '.join(result.xpath('.//p[@class="desc"]//text()')))