diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-08-07 12:58:01 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-10-11 00:05:58 +0200 |
commit | e555786377c0315e187ca46b676348a21869466d (patch) | |
tree | 36f63a71db50d3c3d646ef52d131fd013a45f239 | |
parent | Properly obtain location (diff) | |
download | core-e555786377c0315e187ca46b676348a21869466d.tar.gz core-e555786377c0315e187ca46b676348a21869466d.zip |
expand pyuno path separators
Change-Id: Ic97649ed6d4be595b308922c7bdc880cbb60b239
Reviewed-on: https://gerrit.libreoffice.org/77102
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
(cherry picked from commit 75903a0298218f89a199a5ac151ee0166f4469d7)
Reviewed-on: https://gerrit.libreoffice.org/77115
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 13d338f3b14e..a508aea86e12 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1363,7 +1363,8 @@ bool SfxObjectShell::UnTrustedScript(const OUString& rScriptURL) if (!sfUri.is()) return false; - OUString sScript = sfUri->getName(); + // pyuno encodes path separator as | + OUString sScript = sfUri->getName().replace('|', '/'); // check if any path portion matches LibreLogo and ban it if it does sal_Int32 nIndex = 0; |