- remove protocoll from get_domain() function in app\Helpers\utils.php
This commit is contained in:
parent
8e7960aa8e
commit
3aef68f98d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user