sw/source/uibase/shells/textsh1.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit c3159b941c329e707484e6202f2dd4a518ec7acf
Author:     Attila Szűcs <attila.sz...@collabora.com>
AuthorDate: Mon Jul 15 17:52:50 2024 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Jul 31 15:44:16 2024 +0200

    SW: fix EOL in transform Document Structure
    
    Changed the transform parameter to uri decoded string, and
    encode it here.
    
    This way special characters will survive the transfering.
    
    Change-Id: Ibfa890f98a35559992317ac1f01596b9ca24a07b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171276
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/uibase/shells/textsh1.cxx 
b/sw/source/uibase/shells/textsh1.cxx
index db00f15f9216..139b56a08506 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -130,6 +130,7 @@
 #include <unoprnms.hxx>
 #include <boost/property_tree/json_parser.hpp>
 #include <formatcontentcontrol.hxx>
+#include <rtl/uri.hxx>
 
 using namespace ::com::sun::star;
 using namespace com::sun::star::beans;
@@ -2237,6 +2238,7 @@ void SwTextShell::Execute(SfxRequest &rReq)
             if (pDataJson)
             {
                 aDataJson = pDataJson->GetValue();
+                aDataJson = rtl::Uri::decode(aDataJson, rtl_UriDecodeStrict, 
RTL_TEXTENCODING_UTF8);
             }
 
             // parse the JSON got prom parameter

Reply via email to