WizardWalletInput: disallow (back)slash

This commit is contained in:
selsta 2020-06-04 18:33:07 +02:00
parent b15dbbb9b0
commit f1e3926192
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E

View File

@ -64,7 +64,7 @@ GridLayout {
Layout.fillWidth: true Layout.fillWidth: true
function verify(){ function verify(){
if(walletLocation === "") return false; if(walletLocation === "" || /[\\\/]/.test(walletName.text)) return false;
var exists = Wizard.walletPathExists(walletLocation.text, walletName.text, isIOS, walletManager); var exists = Wizard.walletPathExists(walletLocation.text, walletName.text, isIOS, walletManager);
return !exists && walletLocation.error === false; return !exists && walletLocation.error === false;