diff options
author | Jonas Kvinge <jonas@jkvinge.net> | 2022-12-27 03:57:06 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-01-21 17:11:19 +0100 |
commit | 1d9060f0d9b3a36b343307ebe88b125a5d2b0e94 (patch) | |
tree | ea5b507f8a637171a9f0b4f7f841180d1ee405a5 /src/gui/text/qtextdocumentwriter.cpp | |
parent | d4078e9c67d973360026437ad6a8fabc250b7a5e (diff) |
QFileSystemEngine: URL encode path in trash info, use relative path
According to the specifications, the path in .trashinfo should be URL
encoded.
The path can be relative when possible, otherwise changing the
mountpoint will break restoring files from trash.
But don't do that for root (/) and home.
For more info, see.:
https://specifications.freedesktop.org/trash-spec/trashspec-1.0.html
Change-Id: Id8271a893a007f4cb5c10611f2b1bc71c1ff4860
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 314a4d121f55a7a6cd8335c9953d105574efab76)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocumentwriter.cpp')
0 files changed, 0 insertions, 0 deletions