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:
Moritz Duge 2024-07-31 22:25:01 +02:00 committed by Caolán McNamara
parent ee749f4b43
commit fb56e1e284

View file

@ -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)