Browse Source

Fix pleroma bug with invalid urls

Daniel Supernault 6 years ago
parent
commit
c710effcd4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Jobs/RemoteFollowPipeline/RemoteFollowImportRecent.php

+ 1 - 0
app/Jobs/RemoteFollowPipeline/RemoteFollowImportRecent.php

@@ -207,6 +207,7 @@ class RemoteFollowImportRecent implements ShouldQueue
 
         try {
             $info = pathinfo($url);
+            $url = str_replace(' ', '%20', $url);
             $img = file_get_contents($url);
             $file = '/tmp/'.str_random(12).$info['basename'];
             file_put_contents($file, $img);