]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Oembed.php
Fixes notice "PHP Notice: Undefined index: return_path"
[friendica.git] / src / Module / Oembed.php
index 452162ff208f3af7f9db16107674679f91500bd7..9ca4530d8b8781a2fa322f8914765f41aa656c49 100644 (file)
@@ -4,6 +4,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Content;
+use Friendica\Util\Strings;
 
 /**
  * Oembed module
@@ -36,7 +37,7 @@ class Oembed extends BaseModule
 
                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)