Skip to content

Commit

Permalink
address codeql issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed May 18, 2021
1 parent 8bd5583 commit e73e8c8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nodejsscan/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import nodejsscan.utils as utils

from web.upload import handle_upload
from web.git import clone
from web.git_utils import clone
from web.dashboard import (
home,
issue_hide,
Expand Down
2 changes: 1 addition & 1 deletion nodejsscan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

# GENERAL
VERSION = '4.4'
VERSION = '4.5'
UPLOAD_FOLDER = Path('~/.nodejsscan/').expanduser().as_posix()
Path(UPLOAD_FOLDER).mkdir(parents=True, exist_ok=True)
UPLD_MIME = [
Expand Down
2 changes: 1 addition & 1 deletion web/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def view_file(request):
'status': 'failed',
'contents': 'Path Traversal Detected!'}
else:
if req_path.is_file():
if req_path.is_file(): # lgtm [py/path-injection]
contents = utils.read_file(req_path.as_posix())
context = {'contents': contents}
return jsonify(**context)
File renamed without changes.

0 comments on commit e73e8c8

Please sign in to comment.