diff --git a/companion/lib/ImportExport/Controller.ts b/companion/lib/ImportExport/Controller.ts index a281252e8..714289ea0 100644 --- a/companion/lib/ImportExport/Controller.ts +++ b/companion/lib/ImportExport/Controller.ts @@ -109,7 +109,7 @@ function attachmentWithFilename(filename: string): string { '"' + [...s.normalize('NFKD')] .filter((c) => '\x20' <= c && c <= '\x7e') - .map((c) => (c === '"' ? '\\"' : c)) + .map((c) => (c === '"' || c === '\\' ? '\\' : '') + c) .join('') + '"' )