mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Add rel=noopener to external links (#1633)
* Add rel=noopener to external links to prevent tab napping attacks
This commit is contained in:
@@ -183,7 +183,7 @@
|
||||
<i class="btn-fa fas fa-network-wired fa-2x px-2" data-toggle="tooltip" data-placement="top" title="IP Addresses"></i>
|
||||
</a>
|
||||
{% if team.website %}
|
||||
<a href="{{ team.website }}" target="_blank" class="text-dark">
|
||||
<a href="{{ team.website }}" target="_blank" class="text-dark" rel="noopener">
|
||||
<i class="btn-fa fas fa-external-link-alt fa-2x px-2" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ team.website }}" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if team.website %}
|
||||
<a href="{{ team.website }}" target="_blank" class="badge badge-info">
|
||||
<a href="{{ team.website }}" target="_blank" class="badge badge-info" rel="noopener">
|
||||
<i class="btn-fa fas fa-external-link-alt" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ team.website }}" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
<i class="btn-fa fas fa-network-wired fa-2x px-2" data-toggle="tooltip" data-placement="top" title="IP Addresses"></i>
|
||||
</a>
|
||||
{% if user.website %}
|
||||
<a href="{{ user.website }}" target="_blank" class="text-decoration-none text-dark">
|
||||
<a href="{{ user.website }}" target="_blank" class="text-decoration-none text-dark" rel="noopener">
|
||||
<i class="btn-fa fas fa-external-link-alt fa-2x px-2" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ user.website }}" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if user.website %}
|
||||
<a href="{{ user.website }}" target="_blank" class="badge badge-info">
|
||||
<a href="{{ user.website }}" target="_blank" class="badge badge-info" rel="noopener">
|
||||
<i class="btn-fa fas fa-external-link-alt" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ user.website }}" aria-hidden="true"></i>
|
||||
</a>
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
{% endif %}
|
||||
</a>
|
||||
{% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}
|
||||
<a href="{{ team.website }}" target="_blank" style="color: inherit;">
|
||||
<a href="{{ team.website }}" target="_blank" style="color: inherit;" rel="noopener">
|
||||
<i class="fas fa-external-link-alt fa-2x px-2" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ team.website }}"></i>
|
||||
</a>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<div class="pt-3">
|
||||
{% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}
|
||||
<a href="{{ team.website }}" target="_blank" style="color: inherit;">
|
||||
<a href="{{ team.website }}" target="_blank" style="color: inherit;" rel="noopener">
|
||||
<i class="fas fa-external-link-alt fa-2x px-2" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ team.website }}"></i>
|
||||
</a>
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
</td>
|
||||
<td class="text-center" style="width: 10px;">
|
||||
{% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}
|
||||
<a href="{{ team.website }}" target="_blank">
|
||||
<a href="{{ team.website }}" target="_blank" rel="noopener">
|
||||
<i class="fas fa-external-link-alt" data-toggle="tooltip" data-placement="top" title="{{ team.website }}"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
<div class="pt-3">
|
||||
{% if user.website %}
|
||||
<a href="{{ user.website }}" target="_blank" style="color: inherit;">
|
||||
<a href="{{ user.website }}" target="_blank" style="color: inherit;" rel="noopener">
|
||||
<i class="fas fa-external-link-alt fa-2x px-2" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ user.website }}"></i>
|
||||
</a>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
<div class="pt-3">
|
||||
{% if user.website %}
|
||||
<a href="{{ user.website }}" target="_blank" style="color: inherit;">
|
||||
<a href="{{ user.website }}" target="_blank" style="color: inherit;" rel="noopener">
|
||||
<i class="fas fa-external-link-alt fa-2x px-2" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ user.website }}"></i>
|
||||
</a>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</td>
|
||||
<td class="text-center" style="width: 10px;">
|
||||
{% if user.website and (user.website.startswith('http://') or user.website.startswith('https://')) %}
|
||||
<a href="{{ user.website }}" target="_blank">
|
||||
<a href="{{ user.website }}" target="_blank" rel="noopener">
|
||||
<i class="fas fa-external-link-alt" data-toggle="tooltip" data-placement="top"
|
||||
title="{{ user.website }}"></i>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user