Skip to content

Commit

Permalink
fix: Also escape backslashes in the Content-Disposition legacy filena…
Browse files Browse the repository at this point in the history
…me parameter. (#3245)
  • Loading branch information
jswalden authored and Julusian committed Feb 4, 2025
1 parent 5efa7d3 commit ce49bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion companion/lib/ImportExport/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('') +
'"'
)
Expand Down

0 comments on commit ce49bb1

Please sign in to comment.