Skip to content

Passwords with double quotes do not work under windows #132

@JackGruber

Description

@JackGruber

Passwords with " do not work under windows, because they are escaped incorrectly?!

Example code

import Seven from "node-7z";
import sevenBin from '7zip-bin'

const pathTo7zip = sevenBin.path7za

const myStream = Seven.add('test.7z', 'test.txt', {
    $bin: pathTo7zip,
    method: ["he"],
    password: 'a"aa',
  })

spawned process 7za.exe a test.7z test.txt -mhe "-pa\"aa" -y -bb3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions