diff options
author | Friendika <info@friendika.com> | 2011-08-03 19:18:58 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-03 19:18:58 -0700 |
commit | ad1e827169d9f57c02746b51c5268bdbe2cd8ac9 (patch) | |
tree | a6770ab49f632a8a63f1738b05eec3de32c1ea8b /include/text.php | |
parent | d0b7723bbcd4e9a4fd5c97370bd1c738fdcdab28 (diff) | |
download | volse-hubzilla-ad1e827169d9f57c02746b51c5268bdbe2cd8ac9.tar.gz volse-hubzilla-ad1e827169d9f57c02746b51c5268bdbe2cd8ac9.tar.bz2 volse-hubzilla-ad1e827169d9f57c02746b51c5268bdbe2cd8ac9.zip |
several fixes for attachments
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index d65c77872..a568b7a94 100644 --- a/include/text.php +++ b/include/text.php @@ -746,7 +746,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=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"\[\/attach\]|',$r,$matches); if($cnt) { $icontype = strtolower(substr($matches[3],0,strpos($matches[3],'/'))); switch($icontype) { |