ucb/source/ucp/gio/gio_content.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit e95bcf952abfcde18caca2058260e9213003df8a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Oct 19 09:38:14 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Oct 19 15:28:08 2021 +0200

    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_l...@sil.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Justin Luth <justin_l...@sil.org>

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

Reply via email to