diff options
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php index 0fb780adc..2c8cf256c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -196,7 +196,7 @@ function item_post(&$a) { $match = null; - if(preg_match_all("/\[img\](.+?)\[\/img\]/",$body,$match)) { + if(preg_match_all("/\[img\](.*?)\[\/img\]/",$body,$match)) { $images = $match[1]; if(count($images)) { foreach($images as $image) { @@ -235,7 +235,7 @@ function item_post(&$a) { $match = false; - if(preg_match_all("/\[attachment\](.+?)\[\/attachment\]/",$body,$match)) { + if(preg_match_all("/\[attachment\](.*?)\[\/attachment\]/",$body,$match)) { $attaches = $match[1]; if(count($attaches)) { foreach($attaches as $attach) { |