Convert IDNs to punycode before searching the lists

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2022-04-04 13:39:16 +02:00
parent cd729f81f3
commit 933e5512dd

View File

@@ -26,10 +26,10 @@ function echoEvent($datatext) {
if(isset($_GET["domain"]))
{
// Is this a valid domain?
$url = $_GET["domain"];
$url = idn_to_ascii($_GET["domain"]);
if(!validDomain($url))
{
echoEvent("Invalid domain!");
echoEvent("$url is an invalid domain!");
die();
}
}