We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 773cc01 commit 09486a8Copy full SHA for 09486a8
library/Pdp/Parser.php
@@ -128,7 +128,6 @@ public function getPublicSuffix($host)
128
return null;
129
}
130
131
- $host = mb_strtolower($host, 'UTF-8');
132
$parts = array_reverse(explode('.', $host));
133
$publicSuffix = array();
134
$publicSuffixList = $this->publicSuffixList;
@@ -217,7 +216,6 @@ public function getRegisterableDomain($host)
217
216
*/
218
public function getSubdomain($host)
219
{
220
221
$registerableDomain = $this->getRegisterableDomain($host);
222
223
if ($registerableDomain === null || $host == $registerableDomain) {
@@ -238,7 +236,7 @@ public function getSubdomain($host)
238
236
*
239
237
* @return array
240
241
- public function mbParseUrl($url)
+ protected function mbParseUrl($url)
242
243
$enc_url = preg_replace_callback(
244
'%[^:/@?&=#]+%usD',
tests/library/Pdp/ParserTest.php
@@ -23,6 +23,7 @@ protected function tearDown()
23
24
/**
25
* @covers Pdp\Parser::parseUrl()
26
+ * @covers Pdp\Parser::mbParseUrl()
27
28
public function testParseBadUrlThrowsInvalidArgumentException()
29
@@ -108,7 +109,7 @@ public function parseDataProvider()
108
109
// url, public suffix, registerable domain, subdomain, host part
110
return array(
111
array('http://www.waxaudio.com.au/audio/albums/the_mashening', 'com.au', 'waxaudio.com.au', 'www', 'www.waxaudio.com.au'),
- array('example.com', 'com', 'example.com', null, 'example.com'),
112
+ array('example.COM', 'com', 'example.com', null, 'example.com'),
113
array('giant.yyyy', 'yyyy', 'giant.yyyy', null, 'giant.yyyy'),
114
array('cea-law.co.il', 'co.il', 'cea-law.co.il', null, 'cea-law.co.il'),
115
array('http://edition.cnn.com/WORLD/', 'com', 'cnn.com', 'edition', 'edition.cnn.com'),
0 commit comments