Skip to content

Commit

Permalink
fix: strict check
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Oct 7, 2024
1 parent e4369b7 commit 713249b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/CURLRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ protected function setCURLOptions(array $curlOptions = [], array $config = [])
}

// Resolve IP
if (array_key_exists('force_ip_resolve', $config) && $config['force_ip_resolve']) {
if (array_key_exists('force_ip_resolve', $config) && is_string($config['force_ip_resolve']) && $config['force_ip_resolve'] !== '') {
$protocolVersion = $config['force_ip_resolve'];

if ($protocolVersion === 'v4') {
Expand Down

0 comments on commit 713249b

Please sign in to comment.