64af5b
From 1686c4273b8e0b8218853669e50d4bf405525dde Mon Sep 17 00:00:00 2001
64af5b
From: Stephan Bergmann <sbergman@redhat.com>
64af5b
Date: Mon, 26 Aug 2019 10:18:09 +0200
64af5b
Subject: [PATCH 2/2] Improve check
64af5b
64af5b
Change-Id: I8280a81eef2ced0ff0ace51ea9f094421abafe13
64af5b
Reviewed-on: https://gerrit.libreoffice.org/78108
64af5b
Tested-by: Jenkins
64af5b
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
64af5b
(cherry picked from commit 761e6dd25782420bf06e4a2ff3205a79b6cbb136)
64af5b
Reviewed-on: https://gerrit.libreoffice.org/78129
64af5b
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
64af5b
(cherry picked from commit ffad51e9e625a22f1efab3da7886baf4134b444f)
64af5b
---
64af5b
 sfx2/source/doc/objmisc.cxx | 2 +-
64af5b
 1 file changed, 1 insertion(+), 1 deletion(-)
64af5b
64af5b
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
64af5b
index 9b82742302ab..4f2a05909a74 100644
64af5b
--- a/sfx2/source/doc/objmisc.cxx
64af5b
+++ b/sfx2/source/doc/objmisc.cxx
64af5b
@@ -1370,7 +1370,7 @@ bool SfxObjectShell::UnTrustedScript(const OUString& rScriptURL)
64af5b
     do
64af5b
     {
64af5b
         OUString aToken = sScript.getToken(0, '/', nIndex);
64af5b
-        if (aToken.startsWithIgnoreAsciiCase("LibreLogo"))
64af5b
+        if (aToken.startsWithIgnoreAsciiCase("LibreLogo") || aToken.indexOf('~') != -1)
64af5b
         {
64af5b
             return true;
64af5b
         }
64af5b
-- 
64af5b
2.21.0
64af5b