From f1e3926192c41ec04d8c39d93a77fdd786a56f42 Mon Sep 17 00:00:00 2001 From: selsta Date: Thu, 4 Jun 2020 18:33:07 +0200 Subject: [PATCH] WizardWalletInput: disallow (back)slash --- wizard/WizardWalletInput.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wizard/WizardWalletInput.qml b/wizard/WizardWalletInput.qml index 64356c89..261f4b37 100644 --- a/wizard/WizardWalletInput.qml +++ b/wizard/WizardWalletInput.qml @@ -64,7 +64,7 @@ GridLayout { Layout.fillWidth: true function verify(){ - if(walletLocation === "") return false; + if(walletLocation === "" || /[\\\/]/.test(walletName.text)) return false; var exists = Wizard.walletPathExists(walletLocation.text, walletName.text, isIOS, walletManager); return !exists && walletLocation.error === false;