Fix route when the zone name containing slash character.

This commit is contained in:
Tamás Dévai 2016-08-02 10:59:31 +02:00
parent 998e70a642
commit 01dd8fd893

View File

@ -256,7 +256,7 @@ def dashboard():
return render_template('dashboard.html', domains=domains, domain_count=domain_count, users=users, history_number=history_number, uptime=uptime, histories=history) return render_template('dashboard.html', domains=domains, domain_count=domain_count, users=users, history_number=history_number, uptime=uptime, histories=history)
@app.route('/domain/<string:domain_name>', methods=['GET', 'POST']) @app.route('/domain/<path:domain_name>', methods=['GET', 'POST'])
@app.route('/domain', methods=['GET', 'POST']) @app.route('/domain', methods=['GET', 'POST'])
@login_required @login_required
def domain(domain_name): def domain(domain_name):