Skip to content

Commit

Permalink
Merge pull request #27 from OnrechtmatigeDaad/master
Browse files Browse the repository at this point in the history
Removed URL encoding for IP2Country for IPv6 support
  • Loading branch information
dannyvankooten authored Feb 25, 2020
2 parents 38dcd80 + 5c52636 commit 780c8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geolocation/IP2Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function locateIpAddress(string $ipAddress) : string
return '';
}

$url = sprintf('https://api.ip2country.info/ip?%s', urlencode($ipAddress));
$url = sprintf('https://api.ip2country.info/ip?%s', $ipAddress);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
Expand Down

0 comments on commit 780c8ad

Please sign in to comment.