make size search less greedy
This commit is contained in:
parent
f445ed47df
commit
8a4dcc28c1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user