Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "libmime", | ||
"description": "Encode and decode quoted printable and base64 strings", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "src/libmime", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/andris9/libmime", |
@@ -289,3 +289,3 @@ 'use strict'; | ||
libmime.buildHeaderParam(param, value, 50).forEach(function(encodedParam) { | ||
if (encodedParam.key === param) { | ||
if (encodedParam.key === param && !/[\s'"\\;\/=]|^\-/.test(encodedParam.value)) { | ||
paramsArray.push(encodedParam.key + '=' + encodedParam.value); | ||
@@ -297,3 +297,3 @@ } else { | ||
} else { | ||
if (value.match(/[\s'"\\;\/=]|^\-/g)) { | ||
if (/[\s'"\\;\/=]|^\-/.test(value)) { | ||
paramsArray.push(param + '="' + value.replace(/(["\\])/g, "\\$1") + '"'); | ||
@@ -300,0 +300,0 @@ } else { |
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
129094