mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 10:50:23 +01:00
Create separat convertDomainToIDNA function in func.php
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -26,7 +26,8 @@ function echoEvent($datatext) {
|
||||
if(isset($_GET["domain"]))
|
||||
{
|
||||
// Is this a valid domain?
|
||||
$url = idn_to_ascii($_GET["domain"]);
|
||||
// Convert domain name to IDNA ASCII form for international domains
|
||||
$url = convertDomainToIDNA($_GET["domain"]);
|
||||
if (!validDomain($url)) {
|
||||
echoEvent(htmlentities($url)." is an invalid domain!");
|
||||
die();
|
||||
|
||||
Reference in New Issue
Block a user