From 3aef68f98d83a26051657698a90f2c3d121a7844 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Tue, 15 Jun 2021 21:52:52 +0200 Subject: [PATCH] - remove protocoll from get_domain() function in app\Helpers\utils.php --- app/Helpers/utils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Helpers/utils.php b/app/Helpers/utils.php index 7892505..14918ee 100644 --- a/app/Helpers/utils.php +++ b/app/Helpers/utils.php @@ -24,5 +24,6 @@ function get_domain($host) } else if ($count > 2) { $myhost = get_domain(explode('.', $myhost, 2)[1]); } + $myhost = preg_replace( "#^[^:/.]*[:/]+#i", "", $myhost); return $myhost; }