aboutsummaryrefslogtreecommitdiffstats
path: root/mod/oembed.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-11-11 17:33:32 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2011-11-11 17:33:32 +0100
commit1ff8cddeb6b9eb53c2714893c61e378e8efc2768 (patch)
tree99d2b4bca1d7fc44994c4cf2ced813d7aaa8ceb3 /mod/oembed.php
parent25b972bee2a708ab794cabf44f54163eb2edc787 (diff)
downloadvolse-hubzilla-1ff8cddeb6b9eb53c2714893c61e378e8efc2768.tar.gz
volse-hubzilla-1ff8cddeb6b9eb53c2714893c61e378e8efc2768.tar.bz2
volse-hubzilla-1ff8cddeb6b9eb53c2714893c61e378e8efc2768.zip
oembed: replace base64 url for iframe with url site/oembed/url_encoded
fix http://bugs.friendika.com/view.php?id=191
Diffstat (limited to 'mod/oembed.php')
-rw-r--r--mod/oembed.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/oembed.php b/mod/oembed.php
new file mode 100644
index 000000000..25995813a
--- /dev/null
+++ b/mod/oembed.php
@@ -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();
+}