diff --git a/CTFd/templates/admin/teams.html b/CTFd/templates/admin/teams.html index 6603aeff..aaf61113 100644 --- a/CTFd/templates/admin/teams.html +++ b/CTFd/templates/admin/teams.html @@ -128,7 +128,7 @@ input[type="checkbox"] { margin: 0px !important; position: relative; top: 5px; } {{ team.name | truncate(32) }} {{ team.email | truncate(32) }} - {% if team.website and team.website.startswith('http') %}{{ team.website | truncate(32) }}{% endif %} + {% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}{{ team.website | truncate(32) }}{% endif %} {% if team.affiliation %}{{ team.affiliation | truncate(20) }}{% endif %} diff --git a/CTFd/templates/original/teams.html b/CTFd/templates/original/teams.html index bc9f6b97..d06cc53d 100644 --- a/CTFd/templates/original/teams.html +++ b/CTFd/templates/original/teams.html @@ -23,7 +23,7 @@ {% for team in teams %} {{ team.name }} - {% if team.website and team.website.startswith('http://') %}{{ team.website }}{% endif %} + {% if team.website and (team.website.startswith('http://') or team.website.startswith('https://')) %}{{ team.website }}{% endif %} {% if team.affiliation %}{{ team.affiliation }}{% endif %} {% if team.country %}{{ team.country }}{% endif %}