desktop/source/app/crashreport.cxx |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit bab790eed9bccebc833f02d635001f00788d7925
Author:     Thorsten Behrens <thorsten.behr...@cib.de>
AuthorDate: Tue Apr 21 01:13:46 2020 +0200
Commit:     Balazs Varga <balazs.va...@collabora.com>
CommitDate: Wed Aug 27 16:29:54 2025 +0200

    related tdf#127711: read crashdump URL from ini file
    
    cherry-picked from commit: 8961f4aaf38db139eb8f154d1c8bb788c992a4e7
    
    Change-Id: I68f06aaf5b8c053d1deef2021876b1399e422dd7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156483
    Reviewed-by: Gabor Kelemen <kelem...@ubuntu.com>
    Tested-by: Thorsten Behrens <thorsten.behr...@allotropia.de>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175003
    Tested-by: allotropia jenkins <jenk...@allotropia.de>
    Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190016
    Reviewed-by: Balazs Varga <balazs.va...@collabora.com>
    Tested-by: Balazs Varga <balazs.va...@collabora.com>

diff --git a/desktop/source/app/crashreport.cxx 
b/desktop/source/app/crashreport.cxx
index 49f7b17290a1..bba15c814926 100644
--- a/desktop/source/app/crashreport.cxx
+++ b/desktop/source/app/crashreport.cxx
@@ -131,9 +131,18 @@ void CrashReporter::writeCommonInfo()
     ucbhelper::InternetProxyDecider 
proxy_decider(::comphelper::getProcessComponentContext());
 
     static constexpr OUString protocol = u"https"_ustr;
-    static constexpr OUString url = u"crashreport.libreoffice.org"_ustr;
     const sal_Int32 port = 443;
 
+    // read configuration item 'CrashDumpUrl'
+    OUString url;
+    rtl::Bootstrap::get("CrashDumpUrl", url);
+    if (url.isEmpty())
+    {
+        // no url in config, bail out
+        mbInit = false;
+        return;
+    }
+
     const OUString proxy_server = proxy_decider.getProxy(protocol, url, port);
 
     // save the new Keys

Reply via email to