From 77dfe8ebbf67003ac386656d99c6e5e1e92abb5c Mon Sep 17 00:00:00 2001 From: Klocus Date: Wed, 13 Jun 2018 15:28:58 +0200 Subject: [PATCH] Fix license verification --- inc/core/lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core/lib/functions.php b/inc/core/lib/functions.php index cbcf13f..89f9bc4 100644 --- a/inc/core/lib/functions.php +++ b/inc/core/lib/functions.php @@ -254,7 +254,7 @@ function domain($with_protocol = true, $cut_www = false) { $url = parse_url(url()); - if ($cut_www) { + if ($cut_www && strpos($url['host'], 'www.') === 0) { $host = str_replace('www.', null, $url['host']); } else { $host = $url['host'];