File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed
Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111import nodejsscan .utils as utils
1212
1313from web .upload import handle_upload
14- from web .git import clone
14+ from web .git_utils import clone
1515from web .dashboard import (
1616 home ,
1717 issue_hide ,
Original file line number Diff line number Diff line change 44from pathlib import Path
55
66# GENERAL
7- VERSION = '4.4 '
7+ VERSION = '4.5 '
88UPLOAD_FOLDER = Path ('~/.nodejsscan/' ).expanduser ().as_posix ()
99Path (UPLOAD_FOLDER ).mkdir (parents = True , exist_ok = True )
1010UPLD_MIME = [
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ def view_file(request):
186186 'status' : 'failed' ,
187187 'contents' : 'Path Traversal Detected!' }
188188 else :
189- if req_path .is_file ():
189+ if req_path .is_file (): # lgtm [py/path-injection]
190190 contents = utils .read_file (req_path .as_posix ())
191191 context = {'contents' : contents }
192192 return jsonify (** context )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments