mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 01:19:31 +08:00
content_disposition neutralized quotes and backslashes in the ASCII filename= fallback but left C0 control characters untouched. A filename containing CR/LF produced a header value with a raw newline — a malformed header / response-splitting shape that the ASGI server rejects (500). Strip control chars like the sibling partners.helpers.safe_filename already does. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>