We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71bed14 + 40a5597 commit ede1676Copy full SHA for ede1676
src/ExtractorFactory.php
@@ -53,7 +53,7 @@ public function createExtractor(UriInterface $uri, RequestInterface $request, Re
53
}
54
55
// Check if $host is a subdomain of $adapterHost.
56
- if (substr($host, -strlen($adapterHost) + 1) === ".{$adapterHost}") {
+ if (substr($host, -strlen($adapterHost) - 1) === ".{$adapterHost}") {
57
$class = $adapter;
58
break;
59
0 commit comments