mirror of
https://github.com/Nathanwoodburn/FireWallet.git
synced 2024-11-10 09:18:15 +11:00
Accounts: Fix password escape to allow quotes and backslash
This commit is contained in:
parent
8758a5fd5e
commit
2a6a708d70
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user