]> git.bitcoin.ninja Git - satsto.me/commitdiff
Link to homograph attacks
authorMatt Corallo <git@bluematt.me>
Fri, 12 Jul 2024 14:10:38 +0000 (14:10 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 12 Jul 2024 14:10:38 +0000 (14:10 +0000)
index.html

index 03dd6ebe0d476cdd110b42fad8736133e9fc3504..2e4735c64c393d836ea6114e6f159a56eed683f3 100644 (file)
                                        }
                                        if (!/^[\p{ASCII}]*$/u.test(addr_parts[0])) {
                                                document.getElementById("paybutton").disabled = true;
-                                               document.getElementById("result").innerHTML = "User part of addres must be ASCII";
+                                               document.getElementById("result").innerHTML = "To protect against <a href='https://en.wikipedia.org/wiki/IDN_homograph_attack'>Homograph Attacks</a>, the user part of addres must be ASCII";
                                                return true;
                                        }
                                        if (!/^[\p{ASCII}]*$/u.test(addr_parts[1])) {
                                                document.getElementById("paybutton").disabled = true;
-                                               document.getElementById("result").innerHTML = "Domain part of address must be ASCII";
+                                               document.getElementById("result").innerHTML = "To protect against <a href='https://en.wikipedia.org/wiki/IDN_homograph_attack'>Homograph Attacks</a>, the domain part of addres must be ASCII";
                                                return true;
                                        }
                                        document.getElementById("paybutton").disabled = false;