From 2b6feeb835d9e47ef122a6817b2b0633a2bb5927 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 27 Mar 2014 15:56:31 -0700 Subject: this will probably fix the uploaded photo permission issue, if not it should be close --- mod/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/item.php b/mod/item.php index 6ea434542..5a3691d5e 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1077,8 +1077,8 @@ function fix_attached_photo_permissions($uid,$xchan_hash,$body, $match = null; // match img and zmg image links - if(preg_match_all("/\[[zi]mg\](.*?)\[\/[zi]mg\]/",$body,$match)) { - $images = $match[1]; + if(preg_match_all("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/",$body,$match)) { + $images = $match[2]; if($images) { foreach($images as $image) { if(! stristr($image,get_app()->get_baseurl() . '/photo/')) -- cgit v1.2.3