1
0
Fork 0

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:
Fabio Comuni 2011-11-11 17:33:32 +01:00
commit 1ff8cddeb6
2 changed files with 17 additions and 2 deletions

13
mod/oembed.php Normal file
View 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();
}