Domain detection failing for .co.uk, etc #647 (#648)

* Fix domain name detection #647

* Ignore page links check if no DB configured #641
This commit is contained in:
Nabeel S
2020-03-28 19:07:46 -04:00
committed by GitHub
parent 3e7d5f6195
commit 82b873c071
5 changed files with 169 additions and 19 deletions

View File

@@ -94,6 +94,7 @@ class UtilsTest extends TestCase
$this->assertEquals('phpvms.net', Utils::getRootDomain($case));
}
$this->assertEquals('phpvms', Utils::getRootDomain('http://phpvms'));
$this->assertEquals('phpvms.co.uk', Utils::getRootDomain('http://phpvms.co.uk'));
$this->assertEquals('phpvms.co.uk', Utils::getRootDomain('http://www.phpvms.co.uk'));
}
}