From 734efdaa8b17131e1687af3ef06e4fa836a2b7f5 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Wed, 29 Jul 2015 11:09:44 +0200 Subject: path must contain user name Change-Id: Ic8c98e724645d49fd9c6da796f9e060aa784246f --- svtools/source/control/breadcrumb.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'svtools/source/control/breadcrumb.cxx') diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx index 36d05b0af6eb..4636a6d6e9aa 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; -- cgit