diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-06 13:56:47 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-02-26 15:39:01 +0000 |
commit | d837a11388ca1c29ce9f495832e52e0809b601de (patch) | |
tree | 2d92fe5b927bef58d5d742e54724babf998f1ef0 /desktop | |
parent | 98df76f26a808940935f1218586443e0d9328d0d (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')
-rw-r--r-- | desktop/source/app/sofficemain.cxx | 1 | ||||
-rw-r--r-- | desktop/source/minidump/minidump_upload.cxx | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 742bbba879cd..b1b7dba113c5 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -99,6 +99,7 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() std::ofstream minidump_file(ini_path, std::ios_base::trunc); minidump_file << "ProductName=LibreOffice\n"; minidump_file << "Version=" << LIBO_VERSION_DOTTED << "\n"; + minidump_file << "URL=" << "http://127.0.0.1:8000/submit" << "\n"; minidump_file.close(); #if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID 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); |