diff options
-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); |