summaryrefslogtreecommitdiff
path: root/desktop/source/minidump
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-06 13:56:47 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-26 15:39:01 +0000
commitd837a11388ca1c29ce9f495832e52e0809b601de (patch)
tree2d92fe5b927bef58d5d742e54724babf998f1ef0 /desktop/source/minidump
parent98df76f26a808940935f1218586443e0d9328d0d (diff)
store the URL in the crash ini file
Change-Id: I1b5f29f864d01c238f2e21de87dde8005236f332 Reviewed-on: https://gerrit.libreoffice.org/22564 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'desktop/source/minidump')
-rw-r--r--desktop/source/minidump/minidump_upload.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/source/minidump/minidump_upload.cxx b/desktop/source/minidump/minidump_upload.cxx
index 29814be09d35..968adc060fa7 100644
--- a/desktop/source/minidump/minidump_upload.cxx
+++ b/desktop/source/minidump/minidump_upload.cxx
@@ -68,15 +68,16 @@ bool uploadContent(std::map<std::string, std::string>& parameters)
if (!curl)
return false;
- std::string proxy, proxy_user_pwd, ca_certificate_file, file;
-
- std::string url = "http://libreofficecrash.org/submit";
+ std::string proxy, proxy_user_pwd, ca_certificate_file, file, url;
getProperty("Proxy", proxy, parameters);
getProperty("ProxyUserPW", proxy_user_pwd, parameters);
getProperty("CAFile", ca_certificate_file, parameters);
getProperty("DumpFile", file, parameters);
+ getProperty("URL", file, parameters);
+ if (url.empty())
+ return false;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_USERAGENT, kUserAgent);