Merge branch 'hotfix/passwordEscape' into develop

This commit is contained in:
Nathan Woodburn 2023-08-18 14:07:48 +10:00
commit 9a12b5d162
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -839,6 +839,11 @@ namespace FireWallet
Account = comboBoxaccount.Text; Account = comboBoxaccount.Text;
Password = textBoxaccountpassword.Text; Password = textBoxaccountpassword.Text;
// Escape the password to allow use in JSON
Password = Password.Replace("\\", "\\\\");
Password = Password.Replace("\"", "\\\"");
bool loggedin = await Login(); bool loggedin = await Login();
if (loggedin) if (loggedin)
{ {