PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php +5 -1 28.0 → trunk View file →
@@ -58,9 +58,13 @@
58 58 return [$host, $port];
59 59 }
60 60 private static function isValidHostHeaderHost(string $host) : bool
61 61 {
62 - if (\preg_match('/[\\x00-\\x20\\x7F\\/\\?#@\\\\]/', $host)) {
62 + $invalidHost = \preg_match('/[\\x00-\\x20\\x7F\\/\\?#@\\\\]/', $host);
63 + if ($invalidHost === \false) {
64 + return \false;
65 + }
66 + if ($invalidHost === 1) {
63 67 return \false;
64 68 }
65 69 if (\strpos($host, '[') !== \false || \strpos($host, ']') !== \false) {
66 70 if ($host[0] !== '[' || \substr($host, -1) !== ']') {