summaryrefslogtreecommitdiff
path: root/svtools/source/control/breadcrumb.cxx
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-29 11:09:44 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-08-14 08:45:17 +0200
commit734efdaa8b17131e1687af3ef06e4fa836a2b7f5 (patch)
tree914e199692f315c384368a53c84dd39329237a92 /svtools/source/control/breadcrumb.cxx
parent0398e1e3967332c49b6451b5d41bcf0357052d0b (diff)
path must contain user name
Change-Id: Ic8c98e724645d49fd9c6da796f9e060aa784246f
Diffstat (limited to 'svtools/source/control/breadcrumb.cxx')
-rw-r--r--svtools/source/control/breadcrumb.cxx6
1 files changed, 5 insertions, 1 deletions
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;