Skip to content

Commit 5fdeeec

Browse files
ajara87superboyiii
andauthored
Apply suggestion from @superboyiii
Co-authored-by: Owen <38493437+superboyiii@users.noreply.github.com>
1 parent 58836bb commit 5fdeeec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Neo.CLI/CLI/MainService.Wallet.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,14 @@ private void OnSignMessageCommand(string message)
528528
return;
529529
}
530530

531+
if (message.Length >= 2)
532+
{
533+
if ((message[0] == '"' && message[^1] == '"') || (message[0] == '\'' && message[^1] == '\''))
534+
{
535+
message = message[1..^1];
536+
}
537+
}
538+
531539
var saltBytes = new byte[16];
532540
RandomNumberGenerator.Fill(saltBytes);
533541
var saltHex = saltBytes.ToHexString().ToLowerInvariant();

0 commit comments

Comments
 (0)