Skip to content

Commit

Permalink
fix: additional path escaping issue #80 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
ausernamedtom authored and liuweiGL committed Jan 9, 2024
1 parent 6bada0c commit a3bbe6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
}
}
4 changes: 2 additions & 2 deletions plugin/mkcert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class Mkcert {
}

const mkcertBinary = await this.getMkcertBinary()
const commandStatement = `${mkcertBinary} -CAROOT`
const commandStatement = `${escape(mkcertBinary)} -CAROOT`

debug(`Exec ${commandStatement}`)

Expand Down Expand Up @@ -204,7 +204,7 @@ class Mkcert {
await ensureDirExist(this.savePath)
await this.retainExistedCA()

const cmd = `${mkcertBinary} -install -key-file ${escape(
const cmd = `${escape(mkcertBinary)} -install -key-file ${escape(
this.keyFilePath
)} -cert-file ${escape(this.certFilePath)} ${names}`

Expand Down

0 comments on commit a3bbe6c

Please sign in to comment.