diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-12-20 14:36:29 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-12-20 14:36:29 -0600 |
| commit | 561ff356b8fd149e0daa82bd8fc61e41f6fc46b6 (patch) | |
| tree | 32077bd1ab6d1dfd57c59e74666b294ee18340c5 /js | |
| parent | 806262a5a2b2eebfdd27eceab9a27b07033115db (diff) | |
| parent | 67787421e1330220c1729c2e6f2de5f7216bdc77 (diff) | |
| download | monzero-gui-561ff356b8fd149e0daa82bd8fc61e41f6fc46b6.tar.gz monzero-gui-561ff356b8fd149e0daa82bd8fc61e41f6fc46b6.tar.xz monzero-gui-561ff356b8fd149e0daa82bd8fc61e41f6fc46b6.zip | |
Merge pull request #1849
6778742 openalias: handle address validation correctly (mmbyday)
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 +} |
