- remove protocoll from get_domain() function in app\Helpers\utils.php

This commit is contained in:
Arno Kaimbacher 2021-06-15 21:52:52 +02:00
parent 8e7960aa8e
commit 3aef68f98d

View File

@ -24,5 +24,6 @@ function get_domain($host)
} else if ($count > 2) { } else if ($count > 2) {
$myhost = get_domain(explode('.', $myhost, 2)[1]); $myhost = get_domain(explode('.', $myhost, 2)[1]);
} }
$myhost = preg_replace( "#^[^:/.]*[:/]+#i", "", $myhost);
return $myhost; return $myhost;
} }