mirror of
https://github.com/friendica/friendica
synced 2025-04-23 22:30:10 +00:00
use iframe for oembed - untrusted content
This commit is contained in:
parent
790c4a4e1a
commit
1a7badb405
2 changed files with 23 additions and 3 deletions
|
@ -19,8 +19,7 @@ function tryoembed($match){
|
|||
if ($o->type=="error") return $match[0];
|
||||
|
||||
$html = oembed_format_object($o);
|
||||
|
||||
return $html;
|
||||
return oembed_iframe($html,$o->width,$o->height);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue