use dbunescbin() for cover photos

This commit is contained in:
Mario 2018-03-08 10:50:03 +01:00 committed by Mario Vavti
parent 2105cfd433
commit a0a1246efb

View file

@ -207,7 +207,7 @@ class Cover_photo extends \Zotlabs\Web\Controller {
}
}
$imagedata = (($os_storage) ? @file_get_contents($imagedata) : $imagedata);
$imagedata = (($os_storage) ? @file_get_contents(dbunescbin($imagedata)) : dbunescbin($imagedata));
$ph = photo_factory($imagedata, $filetype);
if(! $ph->is_valid()) {