uui/source/passworddlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit fb56e1e284925937eff4386a7e3655c0f3182640 Author: Moritz Duge <moritz.d...@allotropia.de> AuthorDate: Wed Jul 31 22:25:01 2024 +0200 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Aug 7 09:29:06 2024 +0200 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.mcnam...@collabora.com> diff --git a/uui/source/passworddlg.cxx b/uui/source/passworddlg.cxx index 7579a8d6d567..0485e4ddc201 100644 --- a/uui/source/passworddlg.cxx +++ b/uui/source/passworddlg.cxx @@ -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)