← All changes
|
vendor_prefixed/guzzlehttp/psr7/src/UriComparator.php
+1
-1
28.0
→
trunk
View file →
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | * respect to an original URL. |
| 17 | 17 | */ |
| 18 | 18 | public static function isCrossOrigin(\YoastSEO_Vendor\Psr\Http\Message\UriInterface $original, \YoastSEO_Vendor\Psr\Http\Message\UriInterface $modified) : bool |
| 19 | 19 | { |
| 20 | - if (\strcasecmp($original->getHost(), $modified->getHost()) !== 0) { | |
| 20 | + if (!\YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::caselessEquals($original->getHost(), $modified->getHost())) { | |
| 21 | 21 | return \true; |
| 22 | 22 | } |
| 23 | 23 | if ($original->getScheme() !== $modified->getScheme()) { |
| 24 | 24 | return \true; |