瀏覽代碼

[fix] sanitize results II.

asciimoo 11 年之前
父節點
當前提交
1e5cbc5f9e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/engines/startpage.py

+ 1
- 1
searx/engines/startpage.py 查看文件

@@ -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()')))