Skip to content

Commit

Permalink
Fixed sinopia to allow old tarballs with @ in them
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed May 15, 2014
1 parent a79fa68 commit 21f7f03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ module.exports.validate_name = function(name) {
if (
name.charAt(0) === '.' || // ".bin", etc.
name.charAt(0) === '-' || // "-" is reserved by couchdb
name.match(/[\/@\s\+%:]/) ||
name !== encodeURIComponent(name) ||
name.match(/[\/\s\+%:]/) ||
name === 'node_modules' ||
name === '__proto__' ||
name === 'package.json' ||
Expand Down

0 comments on commit 21f7f03

Please sign in to comment.