Fix license verification

This commit is contained in:
Klocus
2018-06-13 15:28:58 +02:00
parent 8c6817ba45
commit 77dfe8ebbf

View File

@@ -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'];