X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=d1fff85ea358f7cc866976063eefd3d09047e860;hb=8b643d4c88ff9da3d4bdacfc7223abeee1f1827d;hp=aa3fc000a05d1e17f3727dd27372e1f533ee9c5d;hpb=609c45e791fe23217decbc6e07f44a1f9a9afc93;p=friendica.git diff --git a/include/text.php b/include/text.php index aa3fc000a0..d1fff85ea3 100644 --- a/include/text.php +++ b/include/text.php @@ -1041,13 +1041,13 @@ function prepare_body($item,$attach = false) { return $s; } - $arr = explode(',',$item['attach']); + $arr = explode('[/attach],',$item['attach']); if(count($arr)) { $s .= '
'; foreach($arr as $r) { $matches = false; $icon = ''; - $cnt = preg_match_all('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"\[\/attach\]|',$r,$matches, PREG_SET_ORDER); + $cnt = preg_match_all('|\[attach\]href=\"(.*?)\" length=\"(.*?)\" type=\"(.*?)\" title=\"(.*?)\"|',$r,$matches, PREG_SET_ORDER); if($cnt) { foreach($matches as $mtch) { $icontype = strtolower(substr($mtch[3],0,strpos($mtch[3],'/')));