aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-08 07:21:19 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-08 07:21:19 +0200
commit9ef5cb1c385e598d16ea78fef7f4207603ea4e79 (patch)
tree657eee7d73a33ff860e64f332e43781b033037cb /mod/item.php
parente036434b8a2dbd8594c0ac5ac7233f4700e4e475 (diff)
parente2f1540f25cae5b647fbebacac105d03cff17502 (diff)
downloadvolse-hubzilla-9ef5cb1c385e598d16ea78fef7f4207603ea4e79.tar.gz
volse-hubzilla-9ef5cb1c385e598d16ea78fef7f4207603ea4e79.tar.bz2
volse-hubzilla-9ef5cb1c385e598d16ea78fef7f4207603ea4e79.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php4
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) {