From e2f1540f25cae5b647fbebacac105d03cff17502 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 7 Jun 2011 22:13:07 -0700 Subject: events, continued. Also better regex matching accounting for empty elements --- mod/message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/message.php') diff --git a/mod/message.php b/mod/message.php index 21f7b935e..ad598eb7d 100644 --- a/mod/message.php +++ b/mod/message.php @@ -78,7 +78,7 @@ function message_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) { -- cgit v1.2.3