diff options
| author | mmbyday <mmbyday@protonmail.com> | 2018-12-19 13:37:52 -0800 |
|---|---|---|
| committer | mmbyday <mmbyday@protonmail.com> | 2018-12-20 12:24:55 -0800 |
| commit | 67787421e1330220c1729c2e6f2de5f7216bdc77 (patch) | |
| tree | 6f44083681a6b9a0aa9dc508c70feb4fac61ed8c /js | |
| parent | 7c0a557e627c1c6dee0564d1301034498172885d (diff) | |
| download | monzero-gui-67787421e1330220c1729c2e6f2de5f7216bdc77.tar.gz monzero-gui-67787421e1330220c1729c2e6f2de5f7216bdc77.tar.xz monzero-gui-67787421e1330220c1729c2e6f2de5f7216bdc77.zip | |
openalias: handle address validation correctly
Diffstat (limited to 'js')
| -rw-r--r-- | js/TxUtils.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/TxUtils.js b/js/TxUtils.js index cdb7e719..a6cca114 100644 --- a/js/TxUtils.js +++ b/js/TxUtils.js @@ -56,3 +56,11 @@ function checkSignature(signature) { return false; } +function isValidOpenAliasAddress(address) { + address = address.trim() + var dot = address.indexOf('.') + if (dot < 0) + return false + // we can get an awful lot of valid domains, including non ASCII chars... accept anything + return true +} |
