■ ■ ■ ■ ■ ■
changedetectionio/__init__.py
| skipped 803 lines |
804 | 804 | | compress_type=zipfile.ZIP_DEFLATED, |
805 | 805 | | compresslevel=8) |
806 | 806 | | |
807 | | - | return send_from_directory(datastore_o.datastore_path, backupname, as_attachment=True) |
| 807 | + | # Send_from_directory needs to be the full absolute path |
| 808 | + | return send_from_directory(os.path.abspath(datastore_o.datastore_path), backupname, as_attachment=True) |
808 | 809 | | |
809 | 810 | | @app.route("/static/<string:group>/<string:filename>", methods=['GET']) |
810 | 811 | | def static_content(group, filename): |
| skipped 192 lines |