formidable
Advanced tools
Comparing version 0.9.11 to 1.0.0
@@ -207,4 +207,4 @@ if (global.GENTLY) require = GENTLY.hijack(require); | ||
var m; | ||
if (m = this.headers['content-type'].match(/boundary=([^;]+)/i)) { | ||
this._initMultipart(m[1]); | ||
if (m = this.headers['content-type'].match(/boundary=(?:"([^"]+)"|([^;]+))/i)) { | ||
this._initMultipart(m[1] || m[2]); | ||
} else { | ||
@@ -211,0 +211,0 @@ this._error(new Error('bad content-type header, no multipart boundary')); |
@@ -1,6 +0,14 @@ | ||
{ "name" : "formidable", | ||
"version": "0.9.11", | ||
"dependencies": {"gently": ">=0.7.0"}, | ||
"directories" : { "lib" : "./lib/formidable" }, | ||
"main" : "./lib/formidable/index" | ||
} | ||
{ | ||
"name": "formidable", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"gently": ">=0.7.0" | ||
}, | ||
"directories": { | ||
"lib": "./lib/formidable" | ||
}, | ||
"main": "./lib/formidable/index", | ||
"engines": { | ||
"node": "*" | ||
} | ||
} |
@@ -324,2 +324,11 @@ require('../common'); | ||
(function testQuotedBoundary() { | ||
form.headers = {'content-type': 'multipart/form-data; boundary="' + BOUNDARY + '"'}; | ||
gently.expect(form, '_initMultipart', function(boundary) { | ||
assert.equal(boundary, BOUNDARY); | ||
}); | ||
form._parseContentType(); | ||
})(); | ||
(function testNoBoundary() { | ||
@@ -326,0 +335,0 @@ form.headers = {'content-type': 'multipart/form-data'}; |
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 8 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1723
1
3
62120
25