diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2022-01-11 23:37:43 +0100 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2022-01-12 02:39:50 +0100 |
commit | 348e0651cc5add15ac03b11dde08057cf33f9b16 (patch) | |
tree | 6c324050e1408576934a29d1053dabfbe6cc3236 /cui/source | |
parent | 4032284bf9629e9cfbbbb4597d0b10394f9e61be (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>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/AdditionsDialog.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index bef562ce5bd9..d5b58b5c8aba 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"); |