forked from GNUsocial/gnu-social
[Avatar][Embed] Change use of TemporaryFile::getPath to getRealPath
This commit is contained in:
@@ -93,7 +93,7 @@ class Avatar extends Controller
|
||||
if ($encoding_user == 'base64') {
|
||||
$data_user = base64_decode($data_user);
|
||||
$tempfile = new TemporaryFile('avatar');
|
||||
$path = $tempfile->getPath();
|
||||
$path = $tempfile->getRealPath();
|
||||
file_put_contents($path, $data_user);
|
||||
$sfile = new SymfonyFile($path);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user