matrix-org / pantalaimon

E2EE aware proxy daemon for matrix clients.
Apache License 2.0
288 stars 41 forks source link

[panctl] fails to accept passwords with spaces #138

Open rmNULL opened 2 years ago

rmNULL commented 2 years ago

Describe the bug When Passing passphrase to import-keys only the first word is taken. This also happens with export-keys passphrase.

To Reproduce Steps to reproduce the behavior:

Expected behavior The whole password should be considered. It doesn't work with quotes too.

Screenshots #1663490039-scap

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I suspect this issue is caused by result.split() before passing the line to parser. I was thinking maybe we could handle quoted input like shell does and perform split based on that rather than just spaces. I'm willing to perform these changes, but wanted to get a go signal before taking up this task.