unotools/source/config/securityoptions.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a0b1ef4836ba9982e64420a33000de9877c8d600
Author:     Gabor Kelemen <[email protected]>
AuthorDate: Wed Nov 12 11:03:09 2025 +0100
Commit:     Gabor Kelemen <[email protected]>
CommitDate: Wed Nov 12 14:51:24 2025 +0100

    tdf#169397 Don't crash if SecureURL setting is locked down
    
    Change-Id: I7525d46ded0eac7572e8e49809c85e3721586570
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193844
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <[email protected]>

diff --git a/unotools/source/config/securityoptions.cxx 
b/unotools/source/config/securityoptions.cxx
index 03fe5d5c0df4..82bafb7f999a 100644
--- a/unotools/source/config/securityoptions.cxx
+++ b/unotools/source/config/securityoptions.cxx
@@ -128,9 +128,9 @@ std::vector< OUString > GetSecureURLs()
 
 void SetSecureURLs( std::vector< OUString >&& urlList )
 {
-//    DBG_ASSERT(!officecfg::SecureURL::isReadOnly(), 
"SvtSecurityOptions_Impl::SetSecureURLs()
You tried to write on a readonly value!
");
-//    if (officecfg::SecureURL::isReadOnly())
-//        return;
+    // Do not try to write a readonly value
+    if 
(officecfg::Office::Common::Security::Scripting::SecureURL::isReadOnly())
+        return;
     std::vector< OUString > lURLs( std::move(urlList) );
     SvtPathOptions aOpt;
     std::transform(lURLs.begin(), lURLs.end(), lURLs.begin(),

Reply via email to