diff options
author | Friendika <info@friendika.com> | 2011-06-07 22:13:07 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-07 22:13:07 -0700 |
commit | e2f1540f25cae5b647fbebacac105d03cff17502 (patch) | |
tree | f4ae61e2cca0f923c919edc80a2ebc2a0f1e5e15 /boot.php | |
parent | 33fe26ecb01ec009a639c4c8fdfc4f93b2bd34ac (diff) | |
download | volse-hubzilla-e2f1540f25cae5b647fbebacac105d03cff17502.tar.gz volse-hubzilla-e2f1540f25cae5b647fbebacac105d03cff17502.tar.bz2 volse-hubzilla-e2f1540f25cae5b647fbebacac105d03cff17502.zip |
events, continued. Also better regex matching accounting for empty elements
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |