Socket
Socket
Sign inDemoInstall

libmime

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libmime - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"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 {

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