sc/source/ui/unoobj/filtuno.cxx | 2 +- sw/source/uibase/utlui/glbltree.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 930186296cabd00dc0fb1b11dd6bb1b5ef042da0 Author: Andreas Heinisch <andreas.heini...@yahoo.de> AuthorDate: Tue Aug 26 19:07:58 2025 +0200 Commit: Andreas Heinisch <andreas.heini...@yahoo.de> CommitDate: Tue Aug 26 21:04:17 2025 +0200 tdf#127978, tdf#132421 - Change URL encoding for filename Change URL encoding for the filename of the import ASCII dialog's title and of the navigator's tooltip. Otherwise, filenames including a hash don't display correctly. Change-Id: Ib2f56e77649184f53dd226f4a77e80d270770135 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190240 Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de> Tested-by: Jenkins diff --git a/sc/source/ui/unoobj/filtuno.cxx b/sc/source/ui/unoobj/filtuno.cxx index 0bb3db3453f8..ef9a32696bdd 100644 --- a/sc/source/ui/unoobj/filtuno.cxx +++ b/sc/source/ui/unoobj/filtuno.cxx @@ -183,7 +183,7 @@ sal_Int16 SAL_CALL ScFilterOptionsObj::execute() INetURLObject aURL( aFileName ); // tdf#132421 - don't URL encode filename for the import ASCII dialog title - OUString aPrivDatName(aURL.GetLastName(INetURLObject::DecodeMechanism::Unambiguous)); + OUString aPrivDatName(aURL.GetLastName(INetURLObject::DecodeMechanism::WithCharset)); std::unique_ptr<SvStream> pInStream; if ( xInputStream.is() ) pInStream = utl::UcbStreamHelper::CreateStream( xInputStream ); diff --git a/sw/source/uibase/utlui/glbltree.cxx b/sw/source/uibase/utlui/glbltree.cxx index 62097fdc93b0..ab9aa234ccfc 100644 --- a/sw/source/uibase/utlui/glbltree.cxx +++ b/sw/source/uibase/utlui/glbltree.cxx @@ -532,7 +532,7 @@ void SwGlobalTree::InsertRegion( const SwGlblDocContent* pCont, const OUString* aFileName.SetSmartURL( *pFileName ); // tdf#127978 - don't URL encode filename for navigator's tooltip aFileNames.getArray()[0] - = aFileName.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous); + = aFileName.GetMainURL(INetURLObject::DecodeMechanism::WithCharset); InsertRegion( pCont, aFileNames ); } }