Mercurial > farol
changeset 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 | 5b47af23547f |
children | 812e613cbbb4 |
files | farol/main.py |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
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)):