Skip to content

Commit

Permalink
Fix the vulnerability (#133)
Browse files Browse the repository at this point in the history
* Fix the vulnerability

Signed-off-by: Jiyeong Seok <jiyeong.seok@lge.com>

* Fix the vulnerability

Signed-off-by: Jiyeong Seok <jiyeong.seok@lge.com>

---------

Signed-off-by: Jiyeong Seok <jiyeong.seok@lge.com>
  • Loading branch information
dd-jy authored Aug 25, 2023
1 parent cbc6a48 commit 8881feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fosslight_util/_get_downloadable_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_downloadable_url(link):
ret, new_link = get_download_location_for_pypi(link)
elif link.startswith('mvnrepository.com/artifact/') or link.startswith('repo1.maven.org/'):
ret, new_link = get_download_location_for_maven(link)
elif link.startswith('www.npmjs.com/') or link.startswith('registry.npmjs.org'):
elif link.startswith('www.npmjs.com/') or link.startswith('registry.npmjs.org/'):
ret, new_link = get_download_location_for_npm(link)
elif link.startswith('pub.dev/'):
ret, new_link = get_download_location_for_pub(link)
Expand Down Expand Up @@ -118,7 +118,7 @@ def get_download_location_for_npm(link):
oss_name_npm = ""
tar_name = ""

if link.startswith('www.npmjs.com/') or link.startswith('registry.npmjs.org'):
if link.startswith('www.npmjs.com/') or link.startswith('registry.npmjs.org/'):
try:
dn_loc_split = link.split('/')
if dn_loc_split[1] == 'package':
Expand Down

0 comments on commit 8881feb

Please sign in to comment.