Kaydet (Commit) 9f369309 authored tarafından Szymon Kłos's avatar Szymon Kłos

PlaceEditDialog: user name filled in the auth message box

Change-Id: I85f0e3fdb91c2494797ef63a85579b3f0fc7ed6e
üst bc564e46
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment