From: Zach Prezkuta Date: Sat, 15 Sep 2012 00:33:07 +0000 (-0600) Subject: make size search less greedy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a4dcc28c1e3a0bdb5b8b4fa971ff48cf3e0fb75;p=friendica.git make size search less greedy --- diff --git a/mod/item.php b/mod/item.php index 8fe1c05c12..7d36d7f70a 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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) {