aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-03 19:18:58 -0700
committerFriendika <info@friendika.com>2011-08-03 19:18:58 -0700
commitad1e827169d9f57c02746b51c5268bdbe2cd8ac9 (patch)
treea6770ab49f632a8a63f1738b05eec3de32c1ea8b /include/text.php
parentd0b7723bbcd4e9a4fd5c97370bd1c738fdcdab28 (diff)
downloadvolse-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.php2
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) {