wp-includes/class-requests.php 1 location
|
@@ 968-974 (lines=7) @@
|
965 |
|
// Also validates that the host has 3 parts or more, as per Firefox's |
966 |
|
// ruleset. |
967 |
|
$parts = explode('.', $host); |
968 |
|
if (ip2long($host) === false && count($parts) >= 3) { |
969 |
|
$parts[0] = '*'; |
970 |
|
$wildcard = implode('.', $parts); |
971 |
|
if ($wildcard === $reference) { |
972 |
|
return true; |
973 |
|
} |
974 |
|
} |
975 |
|
|
976 |
|
return false; |
977 |
|
} |
wp-includes/Requests/SSL.php 1 location
|
@@ 141-148 (lines=8) @@
|
138 |
|
// Calculate the valid wildcard match if the host is not an IP address |
139 |
|
// Also validates that the host has 3 parts or more, as per Firefox's |
140 |
|
// ruleset. |
141 |
|
if (ip2long($host) === false) { |
142 |
|
$parts = explode('.', $host); |
143 |
|
$parts[0] = '*'; |
144 |
|
$wildcard = implode('.', $parts); |
145 |
|
if ($wildcard === $reference) { |
146 |
|
return true; |
147 |
|
} |
148 |
|
} |
149 |
|
|
150 |
|
return false; |
151 |
|
} |