profile photo issue on postgres

This commit is contained in:
zotlabs 2016-10-23 20:01:39 -07:00
parent 21b919a76b
commit 06bbf494bb
2 changed files with 3 additions and 2 deletions

View File

@ -243,7 +243,7 @@ class Profile_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()) {

View File

@ -28,7 +28,8 @@ function photo_upload($channel, $observer, $args) {
return $ret;
}
// call_hooks('photo_upload_begin', $args);
//call_hooks('photo_upload_begin', $args);
/*
* Determine the album to use