library/Requests/SSL.php 1 location
|
@@ 133-140 (lines=8) @@
|
| 130 |
|
// Calculate the valid wildcard match if the host is not an IP address |
| 131 |
|
// Also validates that the host has 3 parts or more, as per Firefox's |
| 132 |
|
// ruleset. |
| 133 |
|
if (ip2long($host) === false) { |
| 134 |
|
$parts = explode('.', $host); |
| 135 |
|
$parts[0] = '*'; |
| 136 |
|
$wildcard = implode('.', $parts); |
| 137 |
|
if ($wildcard === $reference) { |
| 138 |
|
return true; |
| 139 |
|
} |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
return false; |
| 143 |
|
} |
library/Requests.php 1 location
|
@@ 991-997 (lines=7) @@
|
| 988 |
|
// Also validates that the host has 3 parts or more, as per Firefox's |
| 989 |
|
// ruleset. |
| 990 |
|
$parts = explode('.', $host); |
| 991 |
|
if (ip2long($host) === false && count($parts) >= 3) { |
| 992 |
|
$parts[0] = '*'; |
| 993 |
|
$wildcard = implode('.', $parts); |
| 994 |
|
if ($wildcard === $reference) { |
| 995 |
|
return true; |
| 996 |
|
} |
| 997 |
|
} |
| 998 |
|
|
| 999 |
|
return false; |
| 1000 |
|
} |