summaryrefslogtreecommitdiff
path: root/sfx2/CppunitTest_sfx2_doc.mk
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-02-22 21:07:34 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-02-23 09:03:55 +0100
commitaaf7fe0326b3be088a5440525363317fb3d0f158 (patch)
treecc3cfcb54b89f2b0302a83d191b75d895155b705 /sfx2/CppunitTest_sfx2_doc.mk
parentb2111e0060b2ed58d2e2d0ec0d22ba049259f89d (diff)
sfx2 store: fix export to PDF when dir name is URL-encoded
Regression from commit 5259ab8104cfba60c40748ed0cd59d93df038c5b (sfx2 store: create temp files next to local files, 2018-01-08), the problem was that the directory hosting the input ODT file was called "Bugzilla%C3%BF" (URL-encoded from "ÿ"), we got this as "Bugzilla%25C3%25BF" (encoded from directory name), but we forgot to decode it before passing this URL to the utl::TempFile ctor as a parent directory, which resulted in failing to save as PDF, and crashing on DOCX export. Note that in practice this only caused a problem on Windows. Change-Id: I5fc8a356b63efc2f16405a14ee59a061b52c5205 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111359 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sfx2/CppunitTest_sfx2_doc.mk')
-rw-r--r--sfx2/CppunitTest_sfx2_doc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/CppunitTest_sfx2_doc.mk b/sfx2/CppunitTest_sfx2_doc.mk
index 02b06dfd1b14..bf181c2325d6 100644
--- a/sfx2/CppunitTest_sfx2_doc.mk
+++ b/sfx2/CppunitTest_sfx2_doc.mk
@@ -27,6 +27,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sfx2_doc, \
unotest \
sfx \
svl \
+ utl \
))
$(eval $(call gb_CppunitTest_use_sdk_api,sfx2_doc))