diff options
author | friendica <info@friendica.com> | 2014-03-27 15:56:31 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-27 15:56:31 -0700 |
commit | 2b6feeb835d9e47ef122a6817b2b0633a2bb5927 (patch) | |
tree | 819a8d80e5b3fee4a320849286b0e3c3bede613e /mod/item.php | |
parent | 6efb0a7cb3355ab40d09ca65290037342cdcac9f (diff) | |
download | volse-hubzilla-2b6feeb835d9e47ef122a6817b2b0633a2bb5927.tar.gz volse-hubzilla-2b6feeb835d9e47ef122a6817b2b0633a2bb5927.tar.bz2 volse-hubzilla-2b6feeb835d9e47ef122a6817b2b0633a2bb5927.zip |
this will probably fix the uploaded photo permission issue, if not it should be close
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 4 |
1 files 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/')) |