summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-19 09:38:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-19 15:28:08 +0200
commite95bcf952abfcde18caca2058260e9213003df8a (patch)
tree2739fd43941f7defbde88e12a4391704b0951ae6 /ucb
parent67a3ea1852a73a25980250473b0fd43a8392f779 (diff)
Related: tdf#145169 missing path separator in gio create folder
Change-Id: I7fa98e05261b6c1ff7c053b5f563ea97bd67ed00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123800 Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/gio/gio_content.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index debdcf8c4217..1edca770b394 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -762,7 +762,11 @@ css::uno::Sequence< css::uno::Any > Content::setPropertyValues(
{
if (nTitlePos > -1)
{
- OUString aNewURL = getParentURL() + aNewTitle;
+ OUString aNewURL = getParentURL();
+ if (!aNewURL.isEmpty() && aNewURL[aNewURL.getLength() - 1] != '/')
+ aNewURL += "/";
+ aNewURL += aNewTitle;
+
css::uno::Reference< css::ucb::XContentIdentifier > xNewId
= new ::ucbhelper::ContentIdentifier( aNewURL );