mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
several fixes for attachments
This commit is contained in:
parent
d0b7723bbc
commit
ad1e827169
6 changed files with 24 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue