From 21f7f03cf7011365ccd26a4806e644632affdcb9 Mon Sep 17 00:00:00 2001 From: Joseph Gentle Date: Thu, 15 May 2014 16:07:33 -0700 Subject: [PATCH] Fixed sinopia to allow old tarballs with @ in them --- lib/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 485a75cbf..6488f21aa 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -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' ||