]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/OEmbed.php
base64url calls
[friendica.git] / src / Content / OEmbed.php
index 943b91e1f293264782dae575ddf9b8be7d54fa77..741f1f42d856989618944cac99f415cad1ffbe85 100644 (file)
@@ -21,6 +21,7 @@ use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Network;
 use Friendica\Util\ParseUrl;
 use Friendica\Util\Proxy as ProxyUtils;
+use Friendica\Util\Strings;
 
 require_once 'include/dba.php';
 
@@ -373,7 +374,7 @@ class OEmbed
                }
                $width = '100%';
 
-               $src = System::baseUrl() . '/oembed/' . base64url_encode($src);
+               $src = System::baseUrl() . '/oembed/' . Strings::base64UrlEncode($src);
                return '<iframe onload="resizeIframe(this);" class="embed_rich" height="' . $height . '" width="' . $width . '" src="' . $src . '" allowfullscreen scrolling="no" frameborder="no">' . L10n::t('Embedded content') . '</iframe>';
        }