]> git.mxchange.org Git - friendica.git/commitdiff
make size search less greedy
authorZach Prezkuta <fermion@gmx.com>
Sat, 15 Sep 2012 00:33:07 +0000 (18:33 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sat, 15 Sep 2012 00:33:07 +0000 (18:33 -0600)
mod/item.php

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