X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foembed.php;h=c848a4580c9dafc407c649fc2a36e0e2130eb399;hb=885dc1df81c9ab752f9f5d66894786944184a9c9;hp=cbd856648f9366a8463fa8a7fbec17659078e84f;hpb=6942b16ef58021cd0f74b368d2b45b07b9a06ff9;p=friendica.git
diff --git a/include/oembed.php b/include/oembed.php
index cbd856648f..c848a4580c 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -1,12 +1,9 @@
width,$j->height);
-
-
+ return $s;
}
@@ -67,9 +64,6 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){
$txt=trim($txt);
- if ($txt==false || $txt=="")
- return false;
-
if ($txt[0]!="{")
$txt='{"type":"error"}';
else //save in cache
@@ -147,20 +141,17 @@ function oembed_format_object($j){
} else {
$ret=$jhtml;
}
- $ret.="
";
+ //$ret.="
";
}; break;
case "photo": {
$ret.= "
";
- //$ret.= "
";
- $ret.="
";
}; break;
case "link": {
- //$ret = "".$j->title."";
}; break;
case "rich": {
// not so safe..
if (!get_config("system","no_oembed_rich_content"))
- $ret.= $jhtml;
+ $ret.= proxy_parse_html($jhtml);
}; break;
}
@@ -197,10 +188,10 @@ function oembed_format_object($j){
} else {
// add for html2bbcode conversion
$ret .= "$embedurl";
- $ret .= "
";
}
$ret.="";
- return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
+ $ret = str_replace("\n","",$ret);
+ return mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
}
function oembed_iframe($src,$width,$height) {