summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-04-21 01:13:46 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-04-21 17:18:00 +0200
commitf93fd0e6e24453ed8d1191571f323a12cd7011a0 (patch)
tree5cddf037bb5ab833b67998bb260593cbcdbafeab
parent8fe18a36cef51f58dfaddee4eb11cbd26629e46c (diff)
related tdf#127711: read crashdump URL from ini file
Change-Id: I68f06aaf5b8c053d1deef2021876b1399e422dd7
-rw-r--r--desktop/source/app/crashreport.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx
index ab19dc6327d7..379dfa38defd 100644
--- a/desktop/source/app/crashreport.cxx
+++ b/desktop/source/app/crashreport.cxx
@@ -112,9 +112,18 @@ void CrashReporter::writeCommonInfo()
ucbhelper::InternetProxyDecider proxy_decider(::comphelper::getProcessComponentContext());
const OUString protocol = "https";
- const OUString url = "crashreport.libreoffice.org";
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 ucbhelper::InternetProxyServer proxy_server = proxy_decider.getProxy(protocol, url, port);
// save the new Keys