Skip to content

Commit

Permalink
Merge branch 'develop' into feature/docker
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Dec 20, 2024
2 parents 5e14521 + da1816c commit 8d76e4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/pages/account/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@
$country_recognized = $country_session;
}
else {
$info = json_decode(@file_get_contents('http://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
ini_set('default_socket_timeout', 5);

$info = json_decode(@file_get_contents('https://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
if(isset($info['country'])) {
$country_recognized = strtolower($info['country']);
setSession('country', $country_recognized);
Expand Down

0 comments on commit 8d76e4e

Please sign in to comment.