mirror of
https://github.com/pi-hole/web.git
synced 2026-02-15 07:25:39 +00:00
Merge pull request #2162 from pi-hole/idn
Convert IDNs to punycode before searching the lists
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user