From 51e31f3d4267c583fe66e5c018f0f3022e7f9ec4 Mon Sep 17 00:00:00 2001 From: Stefan D Date: Thu, 24 Mar 2022 17:31:38 +0200 Subject: [PATCH] fix(Wallet): Don't allow HTML tag special characters in Saved Addresses --- ui/app/AppLayouts/Wallet/popups/AddEditSavedAddressPopup.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/app/AppLayouts/Wallet/popups/AddEditSavedAddressPopup.qml b/ui/app/AppLayouts/Wallet/popups/AddEditSavedAddressPopup.qml index 88467892dd..e41f70ebfc 100644 --- a/ui/app/AppLayouts/Wallet/popups/AddEditSavedAddressPopup.qml +++ b/ui/app/AppLayouts/Wallet/popups/AddEditSavedAddressPopup.qml @@ -65,8 +65,13 @@ StatusModal { StatusMinLengthValidator { minLength: 1 errorMessage: qsTr("Name must not be blank") + }, + StatusRegularExpressionValidator { + regularExpression: /^[^<>]+$/ + errorMessage: qsTr("This is not a valid account name") } ] + charLimit: 40 validationMode: _internal.validationMode }