mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-11-29 08:55:57 +00:00
Clients that build the data URI with a MIME library, such as Go's mime.FormatMediaType, quote filenames that contain spaces and encode non-ASCII ones as filename*. Splitting the metadata at ';' kept the quotes in the name or ignored the parameter. Parse the metadata with mime.ParseMediaType and reject what it cannot parse. Unquoted filenames with spaces or non-ASCII characters are now rejected; clients need to quote or encode them. Assisted-by: Claude Opus 5.5 (cherry picked from commit 92ba581fb3b1b34ee010cca731974aaba78402fc)