use Friendica\BaseModule;
use Friendica\Content;
+use Friendica\Util\Strings;
/**
* Oembed module
if ($a->argv[1] == 'b2h') {
$url = ["", trim(hex2bin($_REQUEST['url']))];
echo Content\OEmbed::replaceCallback($url);
- killme();
+ exit();
}
// Unused form: /oembed/h2b?text=...
if ($a->argv[1] == 'h2b') {
$text = trim(hex2bin($_REQUEST['text']));
echo Content\OEmbed::HTML2BBCode($text);
- killme();
+ exit();
}
if ($a->argc == 2) {
echo '<html><body>';
- $url = base64url_decode($a->argv[1]);
+ $url = Strings::base64UrlDecode($a->argv[1]);
$j = Content\OEmbed::fetchURL($url);
// workaround for media.ccc.de (and any other endpoint that return size 0)
echo $j->html;
echo '</body></html>';
}
- killme();
+ exit();
}
}