openalias: handle address validation correctly

This commit is contained in:
mmbyday
2018-12-19 13:37:52 -08:00
parent 7c0a557e62
commit 67787421e1
3 changed files with 12 additions and 12 deletions

View File

@@ -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
}