diff options
author | pats <pats@apache.org> | 2017-10-30 23:02:26 +0000 |
---|---|---|
committer | pats <pats@apache.org> | 2017-10-30 23:02:26 +0000 |
commit | dcb9d5aba4c6714e7f6faf7b95eae4343af54969 (patch) | |
tree | 9cf8a419dd0645d60dd82c8d03179648f98eb109 /sc | |
parent | 8c5eeb4f15dc565768dd08cdce98afe3d6a7fc30 (diff) |
Make spreadsheets ask to update links. CVE CVE-2017-3157
Notes
Notes:
prefer: 74844277cc2194c9e43f5bd7a6f78a9603da32f3
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen2.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index f3914008756d..58de13973f57 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -229,7 +229,10 @@ ScDocument::ScDocument( ScDocumentMode eMode, if ( eMode == SCDOCMODE_DOCUMENT ) { if ( pDocShell ) - pLinkManager = new sfx2::LinkManager( pDocShell ); + { + pLinkManager = new sfx2::LinkManager(pDocShell); + pLinkManager->SetAutoAskUpdateAllLinks(); + } xPoolHelper = new ScPoolHelper( this ); @@ -269,6 +272,7 @@ sfx2::LinkManager* ScDocument::GetLinkManager() const if ( bAutoCalc && !pLinkManager && pShell) { pLinkManager = new sfx2::LinkManager( pShell ); + pLinkManager->SetAutoAskUpdateAllLinks(); } return pLinkManager; } |