mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Fix pleroma bug with invalid urls
This commit is contained in:
parent
7dc1bc7d9f
commit
c710effcd4
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ class RemoteFollowImportRecent implements ShouldQueue
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$info = pathinfo($url);
|
$info = pathinfo($url);
|
||||||
|
$url = str_replace(' ', '%20', $url);
|
||||||
$img = file_get_contents($url);
|
$img = file_get_contents($url);
|
||||||
$file = '/tmp/'.str_random(12).$info['basename'];
|
$file = '/tmp/'.str_random(12).$info['basename'];
|
||||||
file_put_contents($file, $img);
|
file_put_contents($file, $img);
|
||||||
|
|
Loading…
Add table
Reference in a new issue