From 1b5e52e497d4b9d146cf5cb739ebd562c9976d1f Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Thu, 17 Jul 2014 07:47:03 +0200 Subject: [PATCH] fix no https wrapper errors --- system/includes/updater.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/includes/updater.php b/system/includes/updater.php index d4957ad..e00762f 100644 --- a/system/includes/updater.php +++ b/system/includes/updater.php @@ -59,7 +59,11 @@ class Updater } else { - $fileContent = file_get_contents($path,false, stream_context_create( + if(!in_array('https', stream_get_wrappers())) + { + return array(); + } + $fileContent = @file_get_contents($path,false, stream_context_create( array( 'http' => array( 'header'=>"User-Agent: Awesome-Update-My-Self\r\n" @@ -80,6 +84,8 @@ class Updater public function updateAble() { + if(!in_array('https', stream_get_wrappers())) + return false; if(empty($this->infos)) return false;