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