sfx2/source/appl/linkmgr2.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 16fa8cd1167770f539b112ec2c75caacd1228c47
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Sun Aug 24 11:35:47 2025 +0200
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Mon Sep 1 13:23:20 2025 +0200

    tdf#168089 - Don't URL encode filename for the update links confirmation 
dialog
    
    Change-Id: I9f3b6b7ae342e64c60ee9bf635cd64d7eb32b226
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190132
    Tested-by: Jenkins
    Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de>
    (cherry picked from commit 7039f8acee67cbf20a4ca2b11e8bec5ac8a94414)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190227
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx
index 6d9bb0476e17..bc3d82534be7 100644
--- a/sfx2/source/appl/linkmgr2.cxx
+++ b/sfx2/source/appl/linkmgr2.cxx
@@ -343,7 +343,9 @@ void LinkManager::UpdateAllLinks(
 
             OUString aMsg = SfxResId(STR_QUERY_UPDATE_LINKS);
             INetURLObject aURL(pPersist->getDocumentBaseURL());
-            aMsg = aMsg.replaceFirst("%{filename}", aURL.GetLastName());
+            // tdf#168089 - don't URL encode filename for the update links 
confirmation dialog
+            aMsg = aMsg.replaceFirst("%{filename}",
+                                     
aURL.GetLastName(INetURLObject::DecodeMechanism::Unambiguous));
 
             std::unique_ptr<weld::MessageDialog> 
xQueryBox(Application::CreateMessageDialog(pParentWin,
                                                            
VclMessageType::Question, VclButtonsType::YesNo, aMsg));

Reply via email to