summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Szűcs <attila.szucs@collabora.com>2024-07-15 17:52:50 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-16 13:30:41 +0200
commitff487ed943d5c291a0b3f6c6ba170ba699a786d3 (patch)
treee8675800825238ef94e3bcc49c70fd8d6097c9e2
parent09a258fb0136f53b7ab6bc6574683bddb08d8c74 (diff)
SW: fix EOL in transform Document Structurecp-24.04.5-2
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 <jenkinscollaboraoffice@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170572 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sw/source/uibase/shells/textsh1.cxx2
1 files changed, 2 insertions, 0 deletions
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