# HG changeset patch # User BenoƮt Allard # Date 1414140817 -7200 # Node ID 75c053bf2c3ac36a54df3ad99b5bac279d3d3cc9 # Parent 5b47af23547f24e8bb0795ed4b876fb0be6d041f Remove pointless check if the uploaded file ends in .xml diff -r 5b47af23547f -r 75c053bf2c3a farol/main.py --- a/farol/main.py Fri Oct 24 10:52:47 2014 +0200 +++ b/farol/main.py Fri Oct 24 10:53:37 2014 +0200 @@ -162,9 +162,6 @@ set_url(request.form['url']) elif 'local' in request.files: upload = request.files['local'] - if not upload.filename.endswith('.xml'): - flash('Uploaded files should end in .xml', 'danger') - return redirect(url_for('new')) fpath = os.path.join(app.instance_path, 'tmp', secure_filename(upload.filename)) if not os.path.exists(os.path.dirname(fpath)):