Skip to content

Commit

Permalink
fix: escape paths in args
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Sep 4, 2024
1 parent 9ac2762 commit 6c17eae
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
literal,
htmlTemplateGetSteps,
htmlTemplateGetFileNamesFromSteps,
escapeFilePath,
} from '@sofie-package-manager/api'

import { IWorkInProgress, WorkInProgress } from '../../../lib/workInProgress'
Expand Down Expand Up @@ -649,11 +650,11 @@ class HTMLRenderer {

const args = compact<string>([
`--`,
`--url=${this.url}`,
`--url=${escapeFilePath(this.url)}`,
width !== undefined && `--width=${width}`,
height !== undefined && `--height=${height}`,
scale !== undefined && `--zoom=${scale}`,
`--outputPath=${this.outputPath}`,
`--outputPath=${escapeFilePath(this.outputPath)}`,
`--background=${this.exp.endRequirement.version.renderer?.background ?? 'default'}`,
`--interactive=true`,
])
Expand Down

0 comments on commit 6c17eae

Please sign in to comment.