Skip to content

Commit 1400b63

Browse files
authored
Merge pull request #10715 from f321x/prevent_hidden_wallet
qml: disallow wallet names starting with '.'
2 parents 52f6934 + 04eb5a1 commit 1400b63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

electrum/gui/qml/qedaemon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ def isValidWalletName(self, wallet_name: str) -> bool:
325325
for forbidden_char in ("/", "\\", ):
326326
if forbidden_char in wallet_name:
327327
return False
328+
if wallet_name.startswith('.'): # not shown in wallet list
329+
# TODO: allow wallets starting with '.' as hidden wallets, opened e.g. through wallet creation wizard
330+
return False
328331
if os.path.basename(wallet_name) != wallet_name: # '/foo/bar/' returns 'bar'
329332
return False
330333
wallet_path = self.wallet_path_from_wallet_name(wallet_name)

0 commit comments

Comments
 (0)