make size search less greedy

This commit is contained in:
Zach Prezkuta 2012-09-14 18:33:07 -06:00
parent f445ed47df
commit 8a4dcc28c1
1 changed files with 1 additions and 1 deletions

View 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) {