Skip to content

Commit 3b1d887

Browse files
committed
Force return after 404
1 parent 3f7d74b commit 3b1d887

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tissuumaps/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ def get_file_tree():
10611061
if not root_path.startswith(app.basedir):
10621062
# Directory traversal
10631063
abort(404)
1064+
return
10641065
return jsonify(get_file_tree_data(root_path))
10651066
else:
10661067
return jsonify([])

0 commit comments

Comments
 (0)