We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 168bdb7 commit 074bb42Copy full SHA for 074bb42
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 (preg_match('/^([a-z0-9-]+)\.' . preg_quote($adapterHost, '/') . '$/i', $host, $matches)) {
+ if (substr($host, -strlen($adapterHost) + 1) === ".{$adapterHost}") {
57
$class = $adapter;
58
break;
59
0 commit comments