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 --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 88b822ced..0eccb8498 100644 --- a/boot.php +++ b/boot.php @@ -2574,7 +2574,7 @@ function prepare_body($item,$attach = false) { foreach($arr as $r) { $matches = false; $icon = ''; - $cnt = preg_match('|\[attach\]href=\"(.+?)\" size=\"(.+?)\" type=\"(.+?)\" title=\"(.+?)\"\[\/attach\]|',$r,$matches); + $cnt = preg_match('|\[attach\]href=\"(.*?)\" size=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"\[\/attach\]|',$r,$matches); if($cnt) { $icontype = strtolower(substr($matches[3],0,strpos($matches[3],'/'))); switch($icontype) { -- cgit v1.2.3