oembed: replace base64 url for iframe with url site/oembed/url_encoded
fix http://bugs.friendika.com/view.php?id=191
This commit is contained in:
parent
25b972bee2
commit
1ff8cddeb6
2 changed files with 17 additions and 2 deletions
13
mod/oembed.php
Normal file
13
mod/oembed.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
require_once("include/oembed.php");
|
||||
|
||||
function oembed_content(&$a){
|
||||
if ($a->argc == 2){
|
||||
echo "<html><body>";
|
||||
$url = base64url_decode($a->argv[1]);
|
||||
$j = oembed_fetch_url($url);
|
||||
echo $j->html;
|
||||
echo "</body></html>";
|
||||
}
|
||||
killme();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue