Skip to content

Commit e73e8c8

Browse files
committed
address codeql issues
1 parent 8bd5583 commit e73e8c8

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

nodejsscan/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import nodejsscan.utils as utils
1212

1313
from web.upload import handle_upload
14-
from web.git import clone
14+
from web.git_utils import clone
1515
from web.dashboard import (
1616
home,
1717
issue_hide,

nodejsscan/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from pathlib import Path
55

66
# GENERAL
7-
VERSION = '4.4'
7+
VERSION = '4.5'
88
UPLOAD_FOLDER = Path('~/.nodejsscan/').expanduser().as_posix()
99
Path(UPLOAD_FOLDER).mkdir(parents=True, exist_ok=True)
1010
UPLD_MIME = [

web/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)