diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-11-11 17:44:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-11-14 11:13:23 +0100 |
commit | 18be6f161de20f3b0e05d0dd494242eda16ee5c4 (patch) | |
tree | 392721c5af7da358dec1875c340c9654a30f337d /include | |
parent | 7d989aef3d073e67a4bdbb16f71c8cc38c0c60b0 (diff) |
Add "block untrusted referer links" switch
Change-Id: Id2f2a3dafc3bb7ec6fada6bfda5843348dfac5a1
Diffstat (limited to 'include')
-rw-r--r-- | include/unotools/securityoptions.hxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/unotools/securityoptions.hxx b/include/unotools/securityoptions.hxx index b454c556691a..dd150f17daba 100644 --- a/include/unotools/securityoptions.hxx +++ b/include/unotools/securityoptions.hxx @@ -79,7 +79,8 @@ class UNOTOOLS_DLLPUBLIC SAL_WARN_UNUSED SvtSecurityOptions : public utl::detail E_MACRO_SECLEVEL, E_MACRO_TRUSTEDAUTHORS, E_MACRO_DISABLE, - E_CTRLCLICK_HYPERLINK + E_CTRLCLICK_HYPERLINK, + E_BLOCKUNTRUSTEDREFERERLINKS }; enum MacroAction @@ -189,6 +190,12 @@ class UNOTOOLS_DLLPUBLIC SAL_WARN_UNUSED SvtSecurityOptions : public utl::detail const; /** + Check whether the given referer URI is untrusted, and links + originating from it should not be accessed. + */ + bool isUntrustedReferer(OUString const & referer) const; + + /** Check whether the given uri is a trusted location. */ bool isTrustedLocationUri(OUString const & uri) const; |