]> git.mxchange.org Git - friendica.git/commitdiff
fix permissions for uploaded images with size specified
authorZach Prezkuta <fermion@gmx.com>
Sat, 15 Sep 2012 00:22:56 +0000 (18:22 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sat, 15 Sep 2012 00:22:56 +0000 (18:22 -0600)
mod/item.php

index 52ea9d58c90c253c1b969ac593316592c3edb8f8..8fe1c05c129ee054b8e06df60c7195954a88e0b6 100644 (file)
@@ -373,8 +373,8 @@ function item_post(&$a) {
 
        $match = null;
 
-       if((! $preview) && preg_match_all("/\[img\](.*?)\[\/img\]/",$body,$match)) {
-               $images = $match[1];
+       if((! $preview) && preg_match_all("/\[img([\=0-9x]*)\](.*?)\[\/img\]/",$body,$match)) {
+               $images = $match[2];
                if(count($images)) {
                        foreach($images as $image) {
                                if(! stristr($image,$a->get_baseurl() . '/photo/'))