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

New commits:
commit ff487ed943d5c291a0b3f6c6ba170ba699a786d3
Author:     Attila Szűcs <[email protected]>
AuthorDate: Mon Jul 15 17:52:50 2024 +0200
Commit:     Caolán McNamara <[email protected]>
CommitDate: Tue Jul 16 13:30:41 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/+/170508
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170572
    Tested-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/uibase/shells/textsh1.cxx 
b/sw/source/uibase/shells/textsh1.cxx
index d9e96e4bd638..14225b4cb745 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -128,6 +128,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;
@@ -2156,6 +2157,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