tdf#160839 - Don't URL encode filenames from remote sources

Don't URL encode filenames from remote sources in the recent documents
files list.

Change-Id: Ic9e6cce29ba9638cff43b9f4f540a59be1164276
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206154
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
This commit is contained in:
Andreas Heinisch
2026-06-05 13:54:03 +02:00
parent bcd92d9ffd
commit 3de3bee5d4
@@ -273,7 +273,8 @@ void RecentFilesMenuController::fillPopupMenu(std::unique_lock<std::mutex>& /*rG
else
{
// In all other URLs show the protocol name before the file name
aMenuTitle = INetURLObject::GetSchemeName(aURL.GetProtocol()) + ": " + aURL.getName();
aMenuTitle = INetURLObject::GetSchemeName(aURL.GetProtocol()) + ": "
+ aURL.GetLastName(INetURLObject::DecodeMechanism::WithCharset);
}
aMenuShortCut.append( aMenuTitle );