From 8d865dd384db21270cf86e440f07e46749c9b1dc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 6 Apr 2019 12:24:28 -0600 Subject: [PATCH 1/2] Update AP Helpers --- app/Util/ActivityPub/Helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 42e69d718..3be0492fa 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -341,8 +341,8 @@ class Helpers { // pleroma attachment fix $url = str_replace(' ', '%20', $url); - $img = file_get_contents($url, false, stream_context_create(['ssl' => ["verify_peer"=>false,"verify_peer_name"=>false]])); - $file = '/tmp/'.str_random(16).$info['basename']; + $img = file_get_contents($url, false, stream_context_create(['ssl' => ["verify_peer"=>true,"verify_peer_name"=>true]])); + $file = '/tmp/'.str_random(32); file_put_contents($file, $img); $fdata = new File($file); $path = Storage::putFile($storagePath, $fdata, 'public'); From 6c37335e98d5c52aef97455572aeb9c82c3155f7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 6 Apr 2019 12:24:59 -0600 Subject: [PATCH 2/2] Bump version to 0.8.6 --- config/pixelfed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/pixelfed.php b/config/pixelfed.php index 397dc6223..c72004624 100644 --- a/config/pixelfed.php +++ b/config/pixelfed.php @@ -23,7 +23,7 @@ return [ | This value is the version of your PixelFed instance. | */ - 'version' => '0.8.5', + 'version' => '0.8.6', /* |--------------------------------------------------------------------------