forked from Icycoide/searxng
[enh] implements #264 : add rel="noreferrer" to external links
This commit is contained in:
parent
952473d297
commit
77b2fbb61e
22 changed files with 42 additions and 41 deletions
|
@ -47,7 +47,7 @@ class ViewsTestCase(SearxTestCase):
|
|||
def test_index_html(self):
|
||||
result = self.app.post('/', data={'q': 'test'})
|
||||
self.assertIn(
|
||||
'<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz">Second <span class="highlight">Test</span></a></h3>', # noqa
|
||||
'<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa
|
||||
result.data
|
||||
)
|
||||
self.assertIn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue