Socket
Socket
Sign inDemoInstall

formidable

Package Overview
Dependencies
0
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.16

8

lib/incoming_form.js
if (global.GENTLY) require = GENTLY.hijack(require);
var crypto = require('crypto');
var fs = require('fs');

@@ -531,5 +532,6 @@ var util = require('util'),

IncomingForm.prototype._uploadPath = function(filename) {
var name = '';
for (var i = 0; i < 32; i++) {
name += Math.floor(Math.random() * 16).toString(16);
var name = 'upload_';
var buf = crypto.randomBytes(16);
for (var i = 0; i < buf.length; ++i) {
name += ('0' + buf[i].toString(16)).slice(-2);
}

@@ -536,0 +538,0 @@

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/felixge/node-formidable",
"version": "1.0.15",
"version": "1.0.16",
"devDependencies": {

@@ -8,0 +8,0 @@ "gently": "0.8.0",

@@ -105,3 +105,3 @@ # Formidable

```
Limits the amount of memory a field (not file) can allocate in bytes.
Limits the amount of memory all fields together (except files) can allocate in bytes.
If this value is exceeded, an `'error'` event is emitted. The default

@@ -253,3 +253,3 @@ size is 2MB.

Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core).
Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. After this event is emitted, an `error` event will follow. In the future there will be a separate 'timeout' event (needs a change in the node core).
```javascript

@@ -256,0 +256,0 @@ form.on('aborted', function() {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc