summaryrefslogtreecommitdiff
path: root/unotools/source/config/securityoptions.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-23 08:26:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-23 08:26:36 +0200
commit77cc71476bae2b3655102e2c29d36af40a393201 (patch)
tree8e4e17f0498a4ad08dd1eb2811ab2f5afb0fdcfd /unotools/source/config/securityoptions.cxx
parent17815049103b920df054b4f1bb8b1e99486972f2 (diff)
LinkUpdateMode is a global setting
Change-Id: Ida1257337c6e0916f2228fe053d9c9f085183af6
Diffstat (limited to 'unotools/source/config/securityoptions.cxx')
-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() );