Skip to content

Commit

Permalink
fix: security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Mar 18, 2021
1 parent 743aee9 commit 76e9c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naas/onboarding.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def download_file(url, file_name=None):
file_name = f"{file_name}.ipynb"

file_name = f"dl_{file_name}"
if "github.com" in raw_target:
if "://github.com" in raw_target:
raw_target = raw_target.replace(
"https://github.com/", "https://raw.githubusercontent.com/"
)
Expand Down

0 comments on commit 76e9c99

Please sign in to comment.