Commit b9df5978 by halweg

ignore ssl

parent defa5d2e
...@@ -275,7 +275,12 @@ class InstagramFeedPull extends Command ...@@ -275,7 +275,12 @@ class InstagramFeedPull extends Command
{ {
$path = $this->directoryList->getPath('var'); $path = $this->directoryList->getPath('var');
$file = $path.DIRECTORY_SEPARATOR.mt_rand(10000,99999).time().md5($url).".jpeg"; $file = $path.DIRECTORY_SEPARATOR.mt_rand(10000,99999).time().md5($url).".jpeg";
file_put_contents($file,file_get_contents($url)); file_put_contents($file,file_get_contents($url, false, stream_context_create([
"ssl" => [
"verify_peer"=>false,
"verify_peer_name"=>false,
]
])));
return $file; return $file;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment