mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
Go's mime parser prefers name*= over name=, so a part declared as name="model"; name*=UTF-8''prompt is read as prompt by the gateway (no model candidate reaches the group allowlist) but as model by an upstream that ignores extended parameters. Reject parts whose Content-Disposition carries name*, name*0 or name*0*. filename* stays allowed: it is the standard way to send a non-ASCII file name. Refs: GHSA-p3r4-jcm3-2hph