Mercurial > farol > farol
diff farol/main.py @ 131:75c053bf2c3a
Remove pointless check if the uploaded file ends in .xml
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Fri, 24 Oct 2014 10:53:37 +0200 |
parents | 67c4b299736e |
children | 3a56d5501ffa |
line wrap: on
line diff
--- 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)):