diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2025-02-01 14:10:12 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2025-02-04 11:37:30 -0800 |
| commit | 7d05f5ed7d3472028e28a09eeda175bb1b1eeb00 (patch) | |
| tree | cd1245743dfb4c3adcf2e2dfc4ec9015de4dbf4a /src/corelib/serialization/qjsonobject.cpp | |
| parent | ca250a637297042d39c3e799a1e25ec3168d6f15 (diff) | |
QUrl: set the host to empty but present for "file" URLs
We set it when manipulating full URLs. If you're creating them from
parts, you may end up with one without a host. We will still fix that up
in QUrl::toString() ("manipulates full URL").
This allows the path normalization code to avoid accidentally creating a
URL with no host/authority and with a path that starts with double
slash.
[ChangeLog][QtCore][QUrl] Fixed a bug (regression from 6.7) where
QUrl::resolved() could create invalid URLs when the relative URI being
resolved contained a path with double slashes (e.g., combining
"scheme:a" with "..//b.txt")
Pick-to: 6.9 6.8
Fixes: QTBUG-133403
Change-Id: I3fe9d5fbd2efcaa66d66fffdc010e5a84066b641
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/serialization/qjsonobject.cpp')
0 files changed, 0 insertions, 0 deletions
