summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-23 08:26:36 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:51:35 +0200
commitb0fbbdb2bf8e5a273287f8319448b6fa505f8109 (patch)
tree54bc5d86df58d661159fd36f099cbd9906e85521 /unotools
parent286d539fdf869f4513f6a9fe4d2415a9e28557b0 (diff)
LinkUpdateMode is a global setting
Change-Id: Ida1257337c6e0916f2228fe053d9c9f085183af6 (cherry picked from commit 77cc71476bae2b3655102e2c29d36af40a393201)
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/securityoptions.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx
index 4b1f48472586..3c8fdff3fefb 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -1035,6 +1035,14 @@ bool SvtSecurityOptions::isTrustedLocationUri(OUString const & uri) const {
return false;
}
+bool SvtSecurityOptions::isTrustedLocationUriForUpdatingLinks(
+ OUString const & uri) const
+{
+ return GetMacroSecurityLevel() == 0 || uri.isEmpty()
+ || uri.startsWithIgnoreAsciiCase("private:")
+ || isTrustedLocationUri(uri);
+}
+
sal_Int32 SvtSecurityOptions::GetMacroSecurityLevel() const
{
MutexGuard aGuard( GetInitMutex() );