content-disposition
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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 @@ ================== |
@@ -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>" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6765