tdf#161909: Escape filepaths for password dialog.
For example needed for underscores which are removed by VCL=gtk3 when interpreted as mnemonics. Change-Id: Ic80b64efc81ab5a219b1db1395974a4b59c46833 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171497 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
parent
ee749f4b43
commit
fb56e1e284
1 changed files with 2 additions and 1 deletions
|
@ -87,8 +87,9 @@ PasswordDialog::PasswordDialog(weld::Window* pParent,
|
|||
aFileName += " - " + utl::ConfigManager::getProductName();
|
||||
m_xDialog->set_title(aTitle + " - " + aFileName);
|
||||
|
||||
aMessage += url.HasError()
|
||||
auto aUrl = url.HasError()
|
||||
? aDocURL : url.GetMainURL(INetURLObject::DecodeMechanism::Unambiguous);
|
||||
aMessage += m_xFTPassword->escape_ui_str(aUrl);
|
||||
m_xFTPassword->set_label(aMessage);
|
||||
|
||||
if (bIsSimplePasswordRequest)
|
||||
|
|
Loading…
Reference in a new issue