File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -121,23 +121,10 @@ public function parseHost($host)
121
121
{
122
122
$ host = mb_strtolower ($ host , 'UTF-8 ' );
123
123
124
- $ subdomain = null ;
125
- $ registrableDomain = null ;
126
- $ publicSuffix = null ;
127
-
128
- // Fixes #22: Single label domains are set as Host::$host and all other
129
- // properties are null.
130
- // Fixes #43: Ip Addresses should not be parsed
131
- if ($ this ->isMultiLabelDomain ($ host ) || !$ this ->isIpv4Address ($ host )) {
132
- $ subdomain = $ this ->getSubdomain ($ host );
133
- $ registrableDomain = $ this ->getRegistrableDomain ($ host );
134
- $ publicSuffix = $ this ->getPublicSuffix ($ host );
135
- }
136
-
137
124
return new Host (
138
- $ subdomain ,
139
- $ registrableDomain ,
140
- $ publicSuffix ,
125
+ $ this -> getSubdomain ( $ host ) ,
126
+ $ this -> getRegistrableDomain ( $ host ) ,
127
+ $ this -> getPublicSuffix ( $ host ) ,
141
128
$ host
142
129
);
143
130
}
You can’t perform that action at this time.
0 commit comments