Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

content-disposition

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

content-disposition - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

HISTORY.md

@@ -0,1 +1,6 @@

0.1.1 / 2014-09-19
==================
* Fix invalid characters appearing in `filename*` parameter
0.1.0 / 2014-09-18

@@ -2,0 +7,0 @@ ==================

6

index.js

@@ -20,6 +20,6 @@ /*!

/**
* RegExp to match non attr-char not handled by encodeURI.
* RegExp to match non attr-char, *after* encodeURIComponent (i.e. not including "%")
*/
var encodeUriAttrCharRegExp = /[*']/g
var encodeUriAttrCharRegExp = /[\x00-\x20"'\(\)*,\/:;<=>?@\[\\\]\{\}\x7f]/g

@@ -127,3 +127,3 @@ /**

// percent encode as UTF-8
var encoded = encodeURI(str)
var encoded = encodeURIComponent(str)
.replace(encodeUriAttrCharRegExp, pencode)

@@ -130,0 +130,0 @@

{
"name": "content-disposition",
"description": "Create an attachment Content-Disposition header",
"version": "0.1.0",
"version": "0.1.1",
"contributors": [

@@ -6,0 +6,0 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>"

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc