K
Kirby
Guest
PHP:
So
PHP:
Read more
Continue reading...
Code:
$ips = array_merge(
$data['ipv4s'],
array_map(
function ($ipv6) { return '[' . $ipv6 . ']'; },
$data['ipv6s']
)
);
So
$data['ipv4s']
is a bool here - this seems to happen if the name cannot be resolved using IPv4:PHP:
Code:
public function isRequestableUntrustedUrlExtended($url, &$data = [], &$error = null)
{
[...]
$ips = @gethostbynamel($parts['host']);
if ($ips)
[...]
$data = [...
Read more
Continue reading...