svtools/source/dialogs/ServerDetailsControls.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
New commits: commit 3dd618a99a54fd2d23327b90cb2915f1cb4ef109 Author: Szymon KÅos <eszka...@gmail.com> Date: Fri Jun 19 18:40:55 2015 +0200 PlaceEditDialog: user name filled in the auth message box Change-Id: I85f0e3fdb91c2494797ef63a85579b3f0fc7ed6e diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx index e13b35b..c30b53b 100644 --- a/svtools/source/dialogs/ServerDetailsControls.cxx +++ b/svtools/source/dialogs/ServerDetailsControls.cxx @@ -360,6 +360,17 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl ) { OUString sBindingUrl = m_pEDBinding->GetText().trim( ); + OUString sEncodedUsername = ""; + + if ( !m_sUsername.isEmpty( ) ) + { + sEncodedUsername = rtl::Uri::encode(m_sUsername, + rtl_UriCharClassUserinfo, + rtl_UriEncodeKeepEscapes, + RTL_TEXTENCODING_UTF8 ); + sEncodedUsername += "@"; + } + // Clean the listbox m_pLBRepository->Clear( ); m_aRepoIds.clear( ); @@ -373,7 +384,7 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl ) rtl_UriCharClassRelSegment, rtl_UriEncodeKeepEscapes, RTL_TEXTENCODING_UTF8 ); - sUrl = "vnd.libreoffice.cmis://" + sEncodedBinding; + sUrl = "vnd.libreoffice.cmis://" + sEncodedUsername + sEncodedBinding; } // Get the Content
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits