Skip to content

Commit

Permalink
Fix .tar.gz extract vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Jan 23, 2019
1 parent 4f68fc7 commit 45c6bfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/util/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ function extractGz(archive, dst) {
return deferred.promise;
}

function isSymlink(entry) {
return entry.type === 'SymbolicLink';
function isSymlink(_, entry) {
return entry.type === 'symlink';
}

function filterSymlinks(entry) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"test": "grunt test",
"ci": "grunt travis",
"coveralls": "coveralls",
"prepublish": "in-publish && echo 'You need to use \"grunt publish\" to publish bower' && false || not-in-publish",
"prepublishOnly": "in-publish && echo 'You need to use \"grunt publish\" to publish bower' && false || not-in-publish",
"format": "prettier --write --single-quote --tab-width 4 '**/*.js'",
"precommit": "lint-staged"
},
Expand Down

0 comments on commit 45c6bfa

Please sign in to comment.