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