From 2a6a708d70c020becbe07b076613a3416bd41999 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 18 Aug 2023 14:07:23 +1000 Subject: [PATCH] Accounts: Fix password escape to allow quotes and backslash --- FireWallet/MainForm.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FireWallet/MainForm.cs b/FireWallet/MainForm.cs index 830e909..a5d0db0 100644 --- a/FireWallet/MainForm.cs +++ b/FireWallet/MainForm.cs @@ -839,6 +839,11 @@ namespace FireWallet Account = comboBoxaccount.Text; Password = textBoxaccountpassword.Text; + // Escape the password to allow use in JSON + Password = Password.Replace("\\", "\\\\"); + Password = Password.Replace("\"", "\\\""); + + bool loggedin = await Login(); if (loggedin) {