summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/dialogs/AdditionsDialog.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx
index 425de0230ff6..e1788a42b995 100644
--- a/cui/source/dialogs/AdditionsDialog.cxx
+++ b/cui/source/dialogs/AdditionsDialog.cxx
@@ -79,9 +79,7 @@ std::string ucbGet(const OUString& rURL)
{
try
{
- OUString sEncodedUrl = INetURLObject::encode(rURL, INetURLObject::PART_FPATH,
- INetURLObject::EncodeMechanism::All);
- auto const s = utl::UcbStreamHelper::CreateStream(sEncodedUrl, StreamMode::STD_READ);
+ auto const s = utl::UcbStreamHelper::CreateStream(rURL, StreamMode::STD_READ);
if (!s)
{
SAL_WARN("cui.dialogs", "CreateStream <" << rURL << "> failed");
@@ -480,8 +478,12 @@ AdditionsDialog::AdditionsDialog(weld::Window* pParent, const OUString& sAdditio
this->set_title(titlePrefix);
m_sTag = "allextensions"; // Means empty parameter
}
+
+ OUString sEncodedURLPart = INetURLObject::encode(m_sTag, INetURLObject::PART_PCHAR,
+ INetURLObject::EncodeMechanism::All);
+
//FIXME: Temporary URL - v0 is not using actual api
- OUString rURL = "https://extensions.libreoffice.org/api/v0/" + m_sTag + ".json";
+ OUString rURL = "https://extensions.libreoffice.org/api/v0/" + sEncodedURLPart + ".json";
m_sURL = rURL;
m_xExtensionManager