We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c9eb4 commit e09fe51Copy full SHA for e09fe51
system/pages/createaccount.php
@@ -302,7 +302,9 @@
302
$country_recognized = $country_session;
303
}
304
else {
305
- $info = json_decode(@file_get_contents('http://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
+ ini_set('default_socket_timeout', 5);
306
+
307
+ $info = json_decode(@file_get_contents('https://ipinfo.io/' . get_browser_real_ip() . '/geo'), true);
308
if(isset($info['country'])) {
309
$country_recognized = strtolower($info['country']);
310
setSession('country', $country_recognized);
0 commit comments