diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-12-01 21:43:54 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-12-01 21:43:54 +0100 |
commit | fdb04592887bd9bb804ee63ac320d04fe0968a80 (patch) | |
tree | f3228e53a96eee6a5218f4b04a5949e54c62180b /include/items.php | |
parent | cded6b11366e15d6d4ac3eb6d9f86f4d0a60fa7c (diff) | |
parent | 6f22e47febdfb46494a0e1681e3eabdbd00fe72b (diff) | |
download | volse-hubzilla-fdb04592887bd9bb804ee63ac320d04fe0968a80.tar.gz volse-hubzilla-fdb04592887bd9bb804ee63ac320d04fe0968a80.tar.bz2 volse-hubzilla-fdb04592887bd9bb804ee63ac320d04fe0968a80.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/items.php b/include/items.php index 2cee376d0..b2c288b75 100755 --- a/include/items.php +++ b/include/items.php @@ -4629,10 +4629,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 . '>'; |