diff options
author | Alexandre Flament <alex@al-f.net> | 2015-04-26 15:32:26 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2015-04-26 15:32:26 +0200 |
commit | 77b2fbb61edadab9319cfee429e9694840edec81 (patch) | |
tree | 73d382036e9acea587b251505a2d32714d26015e /searx/tests | |
parent | 952473d297b2f0131196086f5824ae48f32d2922 (diff) | |
download | searxng-77b2fbb61edadab9319cfee429e9694840edec81.tar.gz searxng-77b2fbb61edadab9319cfee429e9694840edec81.zip |
[enh] implements #264 : add rel="noreferrer" to external links
Diffstat (limited to 'searx/tests')
-rw-r--r-- | searx/tests/test_webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/tests/test_webapp.py b/searx/tests/test_webapp.py index 32eff5fa5..471ec2f2d 100644 --- a/searx/tests/test_webapp.py +++ b/searx/tests/test_webapp.py @@ -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( |