diff --git a/dash/controllers/index.php b/dash/controllers/index.php index 95f3483..270caee 100644 --- a/dash/controllers/index.php +++ b/dash/controllers/index.php @@ -218,7 +218,13 @@ public function notifications() { if (Zira\Config::get('check_updates', 1)) { $check_url = 'https://ziracms.github.io/version.txt'; try { - $check_version = @file_get_contents($check_url . '?t=' . time()); + $context = stream_context_create(array( + 'http' => array( + 'method' => 'GET', + 'timeout' => 1.0 + ) + )); + $check_version = @file_get_contents($check_url . '?t=' . time(), false, $context); } catch(\Exception $e) { $check_version = false; }