Improve filename parsing from Content-Disposition header
* Add handling of 'filename*=' parameter, but support only a
small subset of encodings for now
* Sanitize the incoming filename, making sure that there is no
possibility to write to a different directoty and also
substituting characters that may have special meaning in the
filesystem or shell commands.
Fixes: QTBUG-141443
Pick-to: 6.11
Change-Id: I0059a07cde3b725692fb2dd5108339884aaa78ea
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | fcc2b351354a41ffd019bb9789da8b527e8b31d7 |
| parent | 0649f2af553e1ead3c79fc5f8f244028fc82d820 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Thu, 15 Jan 2026 11:08:59 +0100 |
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/httprequest.cpp.mustache
- M tests/auto/responses/client/responses/responses.yaml
- M tests/auto/responses/client/responses/tst_responses.cpp
- M tests/auto/responses/server/go/api_test_.go
- M tests/auto/responses/server/go/routers.go