svtools/source/control/breadcrumb.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 286cc57c9a31695b51845ca7932d795731619cb9
Author: Szymon Kłos <eszka...@gmail.com>
Date:   Wed Jul 29 11:09:44 2015 +0200

    path must contain user name
    
    Change-Id: Ic8c98e724645d49fd9c6da796f9e060aa784246f

diff --git a/svtools/source/control/breadcrumb.cxx 
b/svtools/source/control/breadcrumb.cxx
index 5ae725d..53e1780 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -74,8 +74,12 @@ void Breadcrumb::SetURL( const OUString& rURL )
     INetURLObject aURL( rURL );
     aURL.setFinalSlash();
 
+    OUString sUser = aURL.GetUser( INetURLObject::NO_DECODE );
     OUString sPath = aURL.GetURLPath(INetURLObject::DECODE_WITH_CHARSET);
-    OUString sRootPath = INetURLObject::GetScheme( aURL.GetProtocol() ) + 
aURL.GetHost();
+    OUString sRootPath = INetURLObject::GetScheme( aURL.GetProtocol() )
+                        + sUser
+                        + ( sUser.isEmpty() ? OUString() : "@" )
+                        + aURL.GetHost();
 
     int nSegments = aURL.getSegmentCount();
     unsigned int nPos = 0;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to