| commit | b444c8394ab57203cefe25d8cbb4dbe08e5ee19c | [log] |
|---|---|---|
| author | Gabor Kelemen <kelemeng@ubuntu.com> | Tue Jan 11 23:37:43 2022 +0100 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Wed Jan 12 18:10:38 2022 +0100 |
| tree | 522bc4a163d552985696d23efc517802aea730bc | |
| parent | 8165325a4365801c7a0db9f146c14defd202eae9 [diff] |
tdf#146703 Fix URL encoding when querying extensions so that extension information files are properly downloaded such as: https://extensions.libreoffice.org/api/v0/Color Palette.json Change-Id: Ifb2688b1f09d91277b7d5fe065b0d0f8533310b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128306 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> (cherry picked from commit 348e0651cc5add15ac03b11dde08057cf33f9b16) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128246 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index ec17374..aa36bf4 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx
@@ -80,7 +80,9 @@ std::string ucbGet(const OUString& rURL) { try { auto const s = utl::UcbStreamHelper::CreateStream(rURL, StreamMode::STD_READ); OUString sEncodedUrl = INetURLObject::encode(rURL, INetURLObject::PART_FPATH, INetURLObject::EncodeMechanism::All); auto const s = utl::UcbStreamHelper::CreateStream(sEncodedUrl, StreamMode::STD_READ); if (!s) { SAL_WARN("cui.dialogs", "CreateStream <" << rURL << "> failed");