diff --git a/shared/packages/worker/src/worker/workers/genericWorker/expectationHandlers/renderHTML.ts b/shared/packages/worker/src/worker/workers/genericWorker/expectationHandlers/renderHTML.ts index b87a3ee3..f710fd97 100644 --- a/shared/packages/worker/src/worker/workers/genericWorker/expectationHandlers/renderHTML.ts +++ b/shared/packages/worker/src/worker/workers/genericWorker/expectationHandlers/renderHTML.ts @@ -26,6 +26,7 @@ import { literal, htmlTemplateGetSteps, htmlTemplateGetFileNamesFromSteps, + escapeFilePath, } from '@sofie-package-manager/api' import { IWorkInProgress, WorkInProgress } from '../../../lib/workInProgress' @@ -649,11 +650,11 @@ class HTMLRenderer { const args = compact([ `--`, - `--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`, ])