Add tracker validation for uploaded torrent

This commit is contained in:
sqozz
2018-04-02 13:34:51 +02:00
parent 439e284135
commit 11522b79f0
4 changed files with 20 additions and 4 deletions

View File

@ -7,6 +7,7 @@ vim: ts=2 noexpandtab
{% block content %}
<link href="{{ url_for("static", filename="css/create.css") }}" rel="stylesheet">
<script src="{{ url_for("static", filename="js/create.js") }}"></script>
<script>var validtracker = "{{ ",".join(tracker) }}".split(",")</script>
<div>
<h2 class="headline">{{ _("Create new torrent") }}</h2>
{% if errors %}