aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-27 15:56:31 -0700
committerfriendica <info@friendica.com>2014-03-27 15:56:31 -0700
commit2b6feeb835d9e47ef122a6817b2b0633a2bb5927 (patch)
tree819a8d80e5b3fee4a320849286b0e3c3bede613e /mod/item.php
parent6efb0a7cb3355ab40d09ca65290037342cdcac9f (diff)
downloadvolse-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.php4
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/'))