mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-11-29 08:55:57 +00:00
An attachment's filename was joined to its temporary directory as given, so a name with path separators or ".." pointed somewhere else. Reject such names before creating the file. Also remove the temporary files when the JSON-RPC client is missing, and the directory when the file cannot be created; both returns left them behind. Assisted-by: Claude Opus 5.5 (cherry picked from commit abfbf6ec85e23f966d089133860b31832f8d7de9)