attached photo permissions regression
(cherry picked from commit 6cade7d935
)
This commit is contained in:
parent
71cc980e96
commit
4bf3d4d87a
@ -4610,10 +4610,10 @@ function fix_attached_photo_permissions($uid,$xchan_hash,$body,
|
||||
if(! stristr($image,z_root() . '/photo/'))
|
||||
continue;
|
||||
$image_uri = substr($image,strrpos($image,'/') + 1);
|
||||
if(strpos($image_uri,'-') !== false)
|
||||
$image_uri = substr($image_uri,0, strpos($image_uri,'-'));
|
||||
if(strpos($image_uri,'.') !== false)
|
||||
$image_uri = substr($image_uri,0, strpos($image_uri,'.'));
|
||||
if(strrpos($image_uri,'-') !== false)
|
||||
$image_uri = substr($image_uri,0, strrpos($image_uri,'-'));
|
||||
if(strrpos($image_uri,'.') !== false)
|
||||
$image_uri = substr($image_uri,0, strrpos($image_uri,'.'));
|
||||
if(! strlen($image_uri))
|
||||
continue;
|
||||
$srch = '<' . $xchan_hash . '>';
|
||||
|
Reference in New Issue
Block a user