test the contestant address field for validity
parent
512ecf13d6
commit
1eb8b5d97e
|
@ -45,7 +45,7 @@
|
|||
} else {
|
||||
outpObscuredFlag.value = addressFromKey(k);
|
||||
var m = inpContestantAddress.value;
|
||||
if (m.slice(0, 2) !== "0x") {
|
||||
if (!/^0x[0-9a-fA-F]{40}$/.test(m)) {
|
||||
outpSignature.value = "";
|
||||
} else {
|
||||
outpSignature.value = signMessage(m, k);
|
||||
|
|
Loading…
Reference in New Issue